3 # Get a string describing the current code, and compare it to the
4 # recorded value in VERSION. Copy over that if it's changed, so that
5 # Make sees a more recent file.
13 # Potentially set by the higher-level package-tarball.sh script
14 if [ "$RELEASE" = "1" ]
17 (cd $SRCBASE && git describe
--exact-match) > VERSION.new ||
exit 1
20 (cd $SRCBASE && git describe
--long --always) > VERSION.new ||
touch VERSION.new
23 VNEW
=`cat VERSION.new`
25 if test -n "$VNEW" -a "$VOLD" != "$VNEW"
27 cp VERSION.new VERSION
28 echo Copying VERSION.new
= $VNEW over VERSION
= $VOLD