9237N/Adiff -uNr libglade-java-2.12.7.orig/doc/examples/runExample.sh.in libgtk-java-2.12.7/doc/examples/runExample.sh.in
9237N/A--- libglade-java-2.12.7.orig/doc/examples/runExample.sh.in 2006-11-03 17:10:20.000000000 +0100
9237N/A+++ libglade-java-2.12.7/doc/examples/runExample.sh.in 2006-11-03 17:14:10.000000000 +0100
9237N/A@@ -3,18 +3,10 @@
9237N/A # A small script to help run example apps
9237N/A #
9237N/A
9237N/A-prefix=@prefix@
9237N/A-exec_prefix=@exec_prefix@
9237N/A-libdir=@libdir@
9237N/A-classpath=@INSTALLED_CLASSPATH@
9237N/A-
9237N/A-GLADE_LIB=$libdir
9237N/A-GLADE_JAR=$classpath
9237N/A-
9237N/A-GTK_JAR=@GTKJAR@
9237N/A-
9237N/A # You should not need to modify anything below here
9237N/A
9237N/A+JARS="gtk2-java gnome2-java glib-java glade-java"
9237N/A+
9237N/A error_message ()
9237N/A {
9237N/A echo
9237N/A@@ -29,8 +21,28 @@
9237N/A exit 1;
9237N/A }
9237N/A
9237N/A-NEED_LIB="$GLADE_LIB"
9237N/A-NEED_JAR="$GTK_JAR $GLADE_JAR"
9237N/A+for JAR in $JARS; do
9237N/A+ CHECK=`pkg-config --variable classpath $JAR`
9237N/A+ if ! test -n "$CHECK"; then
9237N/A+ echo "Package $JAR was not found in the pkg-config search path."
9237N/A+ echo "Perhaps you should add the directory containing '$JAR.pc'"
9237N/A+ echo "to the PKG_CONFIG_PATH environment variable"
9237N/A+ echo "No package '$JAR' found"
9237N/A+ exit 1
9237N/A+ fi
9237N/A+ NEED_JAR="$NEED_JAR $CHECK";
9237N/A+done;
9237N/A+
9237N/A+JGLADE_LIBDIR=`pkg-config --variable libdir glade-java`
9237N/A+if ! test -n "$JGLADE_LIBDIR"; then
9237N/A+ echo "Library requirements for glade-java not met;"
9237N/A+ echo "consider adjusting the PKG_CONFIG_PATH environment"
9237N/A+ echo "variable if your libraries are in a nonstandard prefix"
9237N/A+ echo "so pkg-config can find them."
9237N/A+ exit 1
9237N/A+fi
9237N/A+
9237N/A+NEED_LIB="$JGLADE_LIBDIR"
9237N/A
9237N/A echo "Java-Gnome Example Application Launcher"
9237N/A echo