summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@gnome.org>2014-04-15 10:27:49 +0200
committerAntoine Jacoutot <ajacoutot@gnome.org>2014-04-15 10:27:49 +0200
commitf5bd3785edfbebef04089fc52f804249d88b89de (patch)
tree6c5cb28323d33f50d81c211ace9bdebb845583c7
parentd213283fcb5228d05eb2c796579f18240e8467e8 (diff)
downloadgnome-common-f5bd3785edfbebef04089fc52f804249d88b89de.tar.gz
make program_VERSION a local variable
Otherwise we may end up overriding what was manually set in the environment.
-rw-r--r--macros2/gnome-autogen.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/macros2/gnome-autogen.sh b/macros2/gnome-autogen.sh
index d361c8e..4afc6bb 100644
--- a/macros2/gnome-autogen.sh
+++ b/macros2/gnome-autogen.sh
@@ -80,6 +80,7 @@ version_check() {
vc_min_version=$4
vc_source=$5
vc_status=1
+ local ${vc_variable}_VERSION
vc_checkprog=`eval echo "\\$$vc_variable"`
if [ -n "$vc_checkprog" ]; then