aboutsummaryrefslogtreecommitdiffstats
path: root/svn_version.sh
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-01-23 04:38:43 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-01-23 04:38:43 +0000
commit9f16bd102ac588a85dddcd8557c2217752528e5c (patch)
tree5594bf2f4b3ca0c4d3f5cd400c6e761823c907be /svn_version.sh
parent69e5f2ef2745bb2a47b65850cc9c0fd55f1f66e3 (diff)
downloadlcd4linux-9f16bd102ac588a85dddcd8557c2217752528e5c.tar.gz
try to add svn version
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@756 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'svn_version.sh')
-rwxr-xr-xsvn_version.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/svn_version.sh b/svn_version.sh
new file mode 100755
index 0000000..82df1b9
--- /dev/null
+++ b/svn_version.sh
@@ -0,0 +1,15 @@
+#!/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