# HG changeset patch # User ivo # Date 1189096111 0 # Node ID 012188d367d3bc4f3d333864d97d3ad85139b131 # Parent f5edea48bb66f2383d4419dbba61bfdafc13162c add ; at the end of the sed commands. this fixes operation under cygwin. diff -r f5edea48bb66 -r 012188d367d3 version.sh --- a/version.sh Thu Sep 06 16:25:44 2007 +0000 +++ b/version.sh Thu Sep 06 16:28:31 2007 +0000 @@ -4,7 +4,7 @@ svn_revision=`LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2` test $svn_revision || svn_revision=`grep revision .svn/entries 2>/dev/null | cut -d '"' -f2` -test $svn_revision || svn_revision=`sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null` +test $svn_revision || svn_revision=`sed -n -e '/^dir$/{n;p;q;}' .svn/entries 2>/dev/null` test $svn_revision || svn_revision=UNKNOWN NEW_REVISION="#define VERSION \"dev-SVN-r${svn_revision}${extra}\""