changeset 18759:04ed79acda15

simplify
author diego
date Tue, 20 Jun 2006 10:08:19 +0000
parents 411183f41efb
children 804179fbd77f
files version.sh
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/version.sh	Mon Jun 19 21:43:02 2006 +0000
+++ b/version.sh	Tue Jun 20 10:08:19 2006 +0000
@@ -1,10 +1,7 @@
 #!/bin/sh
 
-revision=r`grep committed-rev .svn/entries | sed 1q | cut -d '"' -f 2 2>/dev/null`
+revision=r`grep revision .svn/entries | cut -d '"' -f 2 2> /dev/null`
 
-extra=""
-if test "$1" ; then
-  extra="-$1"
-fi
+test "$1" && extra="-$1"
 
 echo "#define VERSION \"dev-SVN-${revision}${extra}\"" > version.h