Files
archived-lcd4linux/svn_version.sh
michael 9f16bd102a try to add svn version
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@756 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-01-23 04:38:43 +00:00

16 lines
242 B
Bash
Executable File

#!/bin/sh
# $Id$
# $URL$
OLD_VERSION=`cat svn_version.h 2>/dev/null`
if [ -d .svn ]; then
NEW_VERSION="#define SVN_VERSION \"`svnversion -n`\""
fi
if [ "$NEW_VERSION" != "$OLD_VERSION" ]; then
echo $NEW_VERSION >svn_version.h
fi