On July 20, 2005 04:54 pm, Christian Stimming wrote:
> Hi all,
> - changing of macros/autogen.sh, diff attached.
>
> The changes to autogen.sh are
>
> -     ACLOCAL_FLAGS="-I $GNOME2_PATH/share/aclocal $ACLOCAL_FLAGS"
> +     # if GNOME2_PATH contains several directories, separate them properly
> +     TMP_PATH=`echo $GNOME2_PATH | sed 's/:/ -I /g' `
> +     ACLOCAL_FLAGS="-I $TMP_PATH/share/aclocal $ACLOCAL_FLAGS"
>
> to tolerate env variable GNOME2_PATH=/opt/gnome:/usr/bla/bla, and then

I would use:

-       ACLOCAL_FLAGS="-I $GNOME2_PATH/share/aclocal $ACLOCAL_FLAGS"
+       for dir in `echo $GNOME2_PATH | sed 's/:/ /g'`; do
+               ACLOCAL_FLAGS="-I $dir/share/aclocal $ACLOCAL_FLAGS"
+       done;

instead because each directory in GNOME2_PATH needs /share/aclocal added to 
it.

Unified diff attached.

Phil
Index: autogen.sh
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/macros/autogen.sh,v
retrieving revision 1.15.4.9
diff -u -r1.15.4.9 autogen.sh
--- autogen.sh	30 Apr 2005 16:40:29 -0000	1.15.4.9
+++ autogen.sh	20 Jul 2005 22:43:30 -0000
@@ -9,7 +9,9 @@
 LIBTOOL=${LIBTOOL:-libtool}
 
 if [ -n "$GNOME2_PATH" ]; then
-	ACLOCAL_FLAGS="-I $GNOME2_PATH/share/aclocal $ACLOCAL_FLAGS"
+	for dir in `echo $GNOME2_PATH | sed 's/:/ /g'`; do
+		ACLOCAL_FLAGS="-I $dir/share/aclocal $ACLOCAL_FLAGS"
+	done;
 	PATH="$GNOME2_PATH/bin:$PATH"
 	export PATH
 fi
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to