[gnome-common] gnome-autogen: warn for deprecated variables



commit 4c8d8ad93225b468bd101760a1153243a12c4898
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Tue Dec 23 03:46:15 2014 +0100

    gnome-autogen: warn for deprecated variables
    
    Well, many people still use deprecated variables for 10y, maybe
    it's time to let them know.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741891

 macros2/gnome-autogen.sh |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/macros2/gnome-autogen.sh b/macros2/gnome-autogen.sh
index 8195dfb..dace336 100644
--- a/macros2/gnome-autogen.sh
+++ b/macros2/gnome-autogen.sh
@@ -45,6 +45,23 @@ printerr() {
     echo "$@" >&2
 }
 
+check_deprecated() {
+    variable=$1
+
+    if set | grep "^$variable=" > /dev/null; then
+        printerr "***Warning*** $1 is deprecated, you may remove it from autogen.sh"
+    fi
+}
+
+check_deprecated REQUIRED_GNOME_DOC_UTILS_VERSION
+check_deprecated REQUIRED_DOC_COMMON_VERSION
+check_deprecated USE_COMMON_DOC_BUILD
+check_deprecated FORBIDDEN_M4MACROS
+check_deprecated GNOME2_DIR
+check_deprecated GNOME2_PATH
+check_deprecated USE_GNOME2_MACROS
+check_deprecated PKG_NAME
+
 PKG_NAME=`autoconf --trace "AC_INIT:$1" "$srcdir/configure.ac"`
 
 # Usage:


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