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. Backported from 1.4 (master).
This commit is contained in:
parent
46604ef40b
commit
5f645dda79
@ -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..."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user