Rename file 'VERSION' to 'fltk_version.dat' (#191)

The file VERSION could be included erroneously on case insensitive
platforms (notably Windows) if the user included the c++ standard
header <version> directly or indirectly.

Renaming the file fixes this.
This commit is contained in:
Albrecht Schlosser 2021-02-20 13:45:47 +01:00
parent 32f926c360
commit 94fef6ff6e
2 changed files with 3 additions and 3 deletions

View File

@ -54,10 +54,10 @@ DATE="`date +'%Y%m%d'`"
# VS = short version number ('major.minor'), for instance '1.4'.
# Note: VS is used only for snapshot generation
# fltk_version = full version number w/o 'rcN' (from file VERSION)
# fltk_version = full version number w/o 'rcN' (from file fltk_version.dat)
fltk_version="`cat VERSION`"
VS="`cat VERSION | sed -e's/\([0-9]*\.[0-9]*\).*/\1/'`"
fltk_version="`cat fltk_version.dat`"
VS="`echo $fltk_version | cut -f 1-2 -d '.'`"
echo "Getting distribution..."