[Gnucash-changes] Eventually really fix path processing

Christian Stimming cstim at cvs.gnucash.org
Sat Aug 27 06:39:18 EDT 2005


Log Message:
-----------
Eventually really fix path processing

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash/macros:
        autogen.sh

Revision Data
-------------
Index: autogen.sh
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/macros/autogen.sh,v
retrieving revision 1.15.4.11
retrieving revision 1.15.4.12
diff -Lmacros/autogen.sh -Lmacros/autogen.sh -u -r1.15.4.11 -r1.15.4.12
--- macros/autogen.sh
+++ macros/autogen.sh
@@ -10,9 +10,13 @@
 
 if [ -n "$GNOME2_PATH" ]; then
 	for dir in `echo $GNOME2_PATH | sed 's/:/ /g'`; do
-	    ACLOCAL_FLAGS="-I $dir/share/aclocal $ACLOCAL_FLAGS"
+	    if test -d "${dir}/share/aclocal"; then
+		ACLOCAL_FLAGS="${ACLOCAL_FLAGS} -I ${dir}/share/aclocal"
+	    fi;
+	    if test -d "${dir}/bin"; then
+		PATH="${PATH}:${dir}/bin"
+	    fi;
 	done;
-	PATH="$GNOME2_PATH/bin:$PATH"
 	export PATH
 fi
 


More information about the gnucash-changes mailing list