tvheadend/support/version.sh

12 lines
286 B
Bash
Raw Normal View History

2009-03-30 17:10:22 +00:00
#!/bin/sh
revision=`$1/support/getver.sh`
2009-03-30 17:10:22 +00:00
NEW_REVISION="#define BUILD_VERSION \"$revision\""
OLD_REVISION=`cat $2 2> /dev/null`
2009-03-30 17:10:22 +00:00
# Update version.h only on revision changes to avoid spurious rebuilds
if test "$NEW_REVISION" != "$OLD_REVISION"; then
echo "$NEW_REVISION" > "$2"
fi