# HG changeset patch # User ivo # Date 1149692605 0 # Node ID 06c236dd604ba89fbd7537a35e7bc20c64ade8f3 # Parent 960cd1af26f26c94114808d5b4ba145b5ae1f3c0 avoid usage of head -1/head -n 1 and use sed 1q instead diff -r 960cd1af26f2 -r 06c236dd604b version.sh --- a/version.sh Wed Jun 07 14:43:34 2006 +0000 +++ b/version.sh Wed Jun 07 15:03:25 2006 +0000 @@ -1,6 +1,6 @@ #!/bin/sh -revision=r`grep committed-rev .svn/entries | head -n 1 | cut -d '"' -f 2 2>/dev/null` +revision=r`grep committed-rev .svn/entries | sed 1q | cut -d '"' -f 2 2>/dev/null` extra="" if test "$1" ; then