[Initng-svn] r2741 - initng
svn at initng.thinktux.net
svn at initng.thinktux.net
Sat Jan 7 15:52:08 CET 2006
Author: jimmy
Date: Sat Jan 7 15:52:07 2006
New Revision: 2741
Modified:
initng/count_me.sh
Log:
Include svn rev in count_me.sh if found.
Modified: initng/count_me.sh
==============================================================================
--- initng/count_me.sh (original)
+++ initng/count_me.sh Sat Jan 7 15:52:07 2006
@@ -1,8 +1,15 @@
#!/bin/sh
-
+export LC_ALL=C
UNAME="`uname -o -r -n`"
INITNG_VERSION="`sed -ne '{s/[ \t]//g;s/^AM_INIT_AUTOMAKE(initng,\([0-9\.]*\))$/\1/p}' configure.in`"
DISTRO="Unknown"
+SVN="`svn info | grep Revision: | awk '{ print $2; }'`" &> /dev/null
+
+# Set the svn version of got it
+if [ "${SVN}" != "" ]
+then
+ INITNG_VERSION="${INITNG_VERSION}-${SVN}"
+fi
[ -e /etc/linspire-version ] && DISTRO="Linspire `cat /etc/linspire-version`"
[ -e /etc/debian_version ] && DISTRO="Debian `cat /etc/debian_version`"
More information about the Initng-svn
mailing list