+2011-08-09 Giuseppe Scrivano <gscrivano@southpole.se>
+
+ * build-aux/bzr-version-gen: Fix some portability issues.
+
2011-05-25 Giuseppe Scrivano <gscrivano@gnu.org>
* bootstrap.conf (gnulib_modules): Add `strerror_r-posix'.
#!/bin/sh
-scriptversion=2010-05-09.22; # UTC
+scriptversion=2011-08-09.13; # UTC
# Copyright (C) 2010, 2011 Free Software Foundation, Inc.
DIRTY=""
-test -n "$(bzr diff | tr -d '\n')" && DIRTY="-dirty"
+test -n "`bzr diff | tr -d '\n'`" && DIRTY="-dirty"
-REVNO=$(bzr revno)
+REVNO=`bzr revno`
-TAG=$(bzr tags -r $REVNO | cut -d' ' -f1)
+TAG=`bzr tags -r $REVNO | cut -d' ' -f1`
if test -z "$TAG"
then
- TAG=$(bzr tags -r ..$REVNO | cut -d' ' -f1)
+ TAG=`bzr tags -r ..$REVNO | cut -d' ' -f1`
# No tags yet
test -z "$TAG" && TAG="unknown"