From ffbce3ea2cda51214be0bb7a107954f890f99b0d Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 30 Jul 2011 19:01:57 +0200 Subject: update mkcompile_h to work with git repository --- firmware/scripts/mkcompile_h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware/scripts/mkcompile_h') 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" -- cgit v1.2.3