[branch-1.3] 5f645dd - Rename file 'VERSION' to 'fltk_version.dat' (#191)

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[branch-1.3] 5f645dd - Rename file 'VERSION' to 'fltk_version.dat' (#191) "Albrecht Schlosser" 13:17 Apr 27 top right image
 
commit 5f645dda79104361a159be1c13ddd7aafd4ed9f2
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Tue Apr 27 22:08:05 2021 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Tue Apr 27 22:08:05 2021 +0200

    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).

 VERSION          | 1 -
 fltk_version.dat | 1 +
 makesrcdist      | 6 +++---
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git VERSION VERSION
deleted file mode 100644
index 95b25ae..0000000
--- VERSION
+++ /dev/null
@@ -1 +0,0 @@
-1.3.6
diff --git fltk_version.dat fltk_version.dat
new file mode 100644
index 0000000..95b25ae
--- /dev/null
+++ fltk_version.dat
@@ -0,0 +1 @@
+1.3.6
diff --git makesrcdist makesrcdist
index 2faa5e7..064459d 100755
--- makesrcdist
+++ makesrcdist
@@ -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..."
 
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.