summaryrefslogtreecommitdiff
path: root/build-aux/git-version-gen
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2012-03-18 18:39:14 +0100
committerJim Meyering <meyering@redhat.com>2012-03-18 18:39:35 +0100
commitcbc11ff0020eb9c04caea6b3e7dc4e4281dff1f9 (patch)
treeb42a817e700f650e036ae8712dc1502013d76555 /build-aux/git-version-gen
parent04ff3c185ce44b905653be2935a1794b3c888ce1 (diff)
downloadgnulib-cbc11ff0020eb9c04caea6b3e7dc4e4281dff1f9.tar.gz
git-version-gen: don't let "prefix" envvar cause trouble
* build-aux/git-version-gen (prefix): Initialize properly, so as not to use a value specified via the environment. Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
Diffstat (limited to 'build-aux/git-version-gen')
-rwxr-xr-xbuild-aux/git-version-gen5
1 files changed, 3 insertions, 2 deletions
diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
index d5542a22a1..0fa90636bd 100755
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -1,6 +1,6 @@
#!/bin/sh
# Print a version string.
-scriptversion=2012-01-06.07; # UTC
+scriptversion=2012-03-18.17; # UTC
# Copyright (C) 2007-2012 Free Software Foundation, Inc.
#
@@ -92,6 +92,8 @@ Options:
Running without arguments will suffice in most cases."
+prefix=v
+
while test $# -gt 0; do
case $1 in
--help) echo "$usage"; exit 0;;
@@ -120,7 +122,6 @@ if test -z "$tarball_version_file"; then
fi
tag_sed_script="${tag_sed_script:-s/x/x/}"
-prefix="${prefix:-v}"
nl='
'