summaryrefslogtreecommitdiff
path: root/firmware/scripts/mkcompile_h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-30 19:01:57 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-30 19:01:57 +0200
commitffbce3ea2cda51214be0bb7a107954f890f99b0d (patch)
tree8408d463a3ea6910d7336e24d60611da8a50b77d /firmware/scripts/mkcompile_h
parent1acaecb4cb1de370a4fee692baaf6b41b8d8ec8c (diff)
update mkcompile_h to work with git repository
Diffstat (limited to 'firmware/scripts/mkcompile_h')
-rwxr-xr-xfirmware/scripts/mkcompile_h8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/scripts/mkcompile_h b/firmware/scripts/mkcompile_h
index 22ac262..c91c640 100755
--- a/firmware/scripts/mkcompile_h
+++ b/firmware/scripts/mkcompile_h
@@ -7,11 +7,11 @@ DATE=`LC_ALL=C LANG=C date +%Y%m%d-%H%M%S`
BY=`whoami`
HOST=`hostname | $TRUNCATE`
BYHOST=`echo ${BY}@${HOST} | $TRUNCATE`
-SVNREV=`svn info | grep \^Revision: | cut -c 11-`
+#SVNREV=`svn info | grep \^Revision: | cut -c 11-`
+#svn st | grep \^M >/dev/null
+#[ "$?" -eq "0" ] && SVNREV=${SVNREV}-unclean
-svn st | grep \^M >/dev/null
-
-[ "$?" -eq "0" ] && SVNREV=${SVNREV}-unclean
+SVNREV=`scripts/git-version-gen .tarball-version`
echo "#ifndef _COMPILE_H"
echo "#define _COMPILE_H"
personal git repositories of Harald Welte. Your mileage may vary