mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
bzr-version-gen: Fix some portability issues.
This commit is contained in:
parent
c25d0f6997
commit
aa05df65c4
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
2011-05-25 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
* bootstrap.conf (gnulib_modules): Add `strerror_r-posix'.
|
* bootstrap.conf (gnulib_modules): Add `strerror_r-posix'.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
scriptversion=2010-05-09.22; # UTC
|
scriptversion=2011-08-09.13; # UTC
|
||||||
|
|
||||||
# Copyright (C) 2010, 2011 Free Software Foundation, Inc.
|
# Copyright (C) 2010, 2011 Free Software Foundation, Inc.
|
||||||
|
|
||||||
@ -30,14 +30,14 @@ fi
|
|||||||
|
|
||||||
DIRTY=""
|
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"
|
if test -z "$TAG"
|
||||||
then
|
then
|
||||||
TAG=$(bzr tags -r ..$REVNO | cut -d' ' -f1)
|
TAG=`bzr tags -r ..$REVNO | cut -d' ' -f1`
|
||||||
|
|
||||||
# No tags yet
|
# No tags yet
|
||||||
test -z "$TAG" && TAG="unknown"
|
test -z "$TAG" && TAG="unknown"
|
||||||
|
Loading…
Reference in New Issue
Block a user