Browse Source

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.
pull/194/head
Albrecht Schlosser 4 years ago
parent
commit
94fef6ff6e
  1. 0
      fltk_version.dat
  2. 6
      makesrcdist

0
VERSION → fltk_version.dat

6
makesrcdist

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

Loading…
Cancel
Save