Revision 26f952eaabc6a0fa6f8708e929600edd7cde3b41 authored by Harshitha on 03 October 2014, 20:01:09 UTC, committed by Harshitha on 03 October 2014, 20:01:09 UTC
Change-Id: I9f017d59dc3b74df8d094515218894cdc8a5585f
1 parent da49072
commitid.sh
#!/bin/sh
# Get a string describing the current code, and compare it to the
# recorded value in VERSION. Copy over that if it's changed, so that
# Make sees a more recent file.
VOLD=""
if test -r VERSION
then
VOLD=`cat VERSION`
fi
#git describe --long --dirty --always > VERSION.new || touch VERSION.new
git describe --long --always > VERSION.new || touch VERSION.new
VNEW=`cat VERSION.new`
if test -n "$VNEW" -a "$VOLD" != "$VNEW"
then
cp VERSION.new VERSION
echo Copying VERSION.new = $VNEW over VERSION = $VOLD
fi
Computing file changes ...