Initialize GNOME_DATADIR from GNOME_DIR if set before trying gnome-config.
authorMartin Baulig <baulig@suse.de>
Mon, 20 Nov 2000 16:26:49 +0000 (16:26 +0000)
committerMartin Baulig <martin@src.gnome.org>
Mon, 20 Nov 2000 16:26:49 +0000 (16:26 +0000)
2000-11-20  Martin Baulig  <baulig@suse.de>

* gnome-autogen.sh: Initialize GNOME_DATADIR from
GNOME_DIR if set before trying gnome-config.

svn path=/trunk/; revision=1462

bin/ChangeLog
bin/gnome-autogen.sh

index 8673130..f2e889a 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-20  Martin Baulig  <baulig@suse.de>
+
+       * gnome-autogen.sh: Initialize GNOME_DATADIR from
+       GNOME_DIR if set before trying gnome-config.
+
 2000-05-29  Martin Baulig  <baulig@suse.de>
 
        * gnome-autogen.sh: New file. Moved here from
index c7e1b26..dc218fa 100755 (executable)
@@ -1,7 +1,11 @@
 #!/bin/sh
 
 if test -z "$GNOME_DATADIR" ; then
-  GNOME_DATADIR=`gnome-config --datadir`
+  if test -z "$GNOME_DIR" ; then
+    GNOME_DATADIR=`gnome-config --datadir`
+  else
+    GNOME_DATADIR="$GNOME_DIR/share"
+  fi
 fi
 
 if test -n "$USE_GNOME2_MACROS" ; then