[Xfce4-commits] <xfdesktop:master> require x-d-t 4.7.0; remove revision and lang substitutions

Brian J. Tarricone brian at tarricone.org
Wed Aug 19 06:28:01 CEST 2009


Updating branch refs/heads/master
         to 74763b862f6419c958ef1bfedaaa4a73f86f25fe (commit)
       from cedac57ab491e95ef6771e1fe547ff227127048f (commit)

commit 74763b862f6419c958ef1bfedaaa4a73f86f25fe
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Tue Aug 18 21:28:19 2009 -0700

    require x-d-t 4.7.0; remove revision and lang substitutions

 autogen.sh |   40 +++++++++++-----------------------------
 1 files changed, 11 insertions(+), 29 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 5e6fb0d..2c0f5c1 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,44 +2,26 @@
 #
 # $Id$
 #
-# Copyright (c) 2002-2005
+# Copyright (c) 2002-2009
 #         The Xfce development team. All rights reserved.
 #
-# Written for Xfce by Benedikt Meurer <benny at xfce.org>.
+# Written for Xfce by Benedikt Meurer <benny at xfce.org>
+#                 and Brian Tarricone <brian at tarricone.org>.
 #
 
-(type xdt-autogen) >/dev/null 2>&1 || {
-  cat >&2 <<EOF
-autogen.sh: You don't seem to have the Xfce development tools installed on
-            your system, which are required to build this software.
-            Please install the xfce4-dev-tools package first, it is available
-            from http://www.xfce.org/.
-EOF
-  exit 1
-}
+export XDT_REQUIRED_VERSION="4.7.0"
 
-# verify that po/LINGUAS is present
-(test -f po/LINGUAS) >/dev/null 2>&1 || {
+(type xdt-autogen && xdt-autogen --version) >/dev/null 2>&1 || {
   cat >&2 <<EOF
-autogen.sh: The file po/LINGUAS could not be found. Please check your snapshot
-            or try to checkout again.
+autogen.sh: You don't seem to have the Xfce development tools (at least
+            version $XDT_REQURED_VERSION) installed on your system, which
+            are required to build this software.
+            Please install the xfce4-dev-tools package first; it is available
+            from http://www.xfce.org/.
 EOF
   exit 1
 }
 
-# substitute revision and linguas
-linguas=`sed -e '/^#/d' po/LINGUAS`
-if [ -d .git ]; then
-  revision=$(git rev-parse --short HEAD)
-fi
-if [ -z "$revision" ]; then
-  revision=UNKNOWN
-fi
-
-sed -e "s/@LINGUAS@/${linguas}/g" \
-    -e "s/@REVISION@/${revision}/g" \
-    < "configure.ac.in" > "configure.ac"
-
-exec xdt-autogen $@
+exec xdt-autogen "$@"
 
 # vi:set ts=2 sw=2 et ai:



More information about the Xfce4-commits mailing list