# HG changeset patch # User diego # Date 1150798099 0 # Node ID 04ed79acda15e8531158653e0594a539b11b4dbd # Parent 411183f41efb3fcd0decb41392f85959285052f8 simplify diff -r 411183f41efb -r 04ed79acda15 version.sh --- 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