[gnome-common] make program_VERSION a local variable



commit f5bd3785edfbebef04089fc52f804249d88b89de
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Tue Apr 15 10:27:49 2014 +0200

    make program_VERSION a local variable
    
    Otherwise we may end up overriding what was manually set in the
    environment.

 macros2/gnome-autogen.sh |    1 +
 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]