From 6f36be6af3bd0b32c27db3c859fb4cfe794a5682 Mon Sep 17 00:00:00 2001 From: "ramiro%netscape.com" Date: Thu, 1 Apr 1999 20:36:29 +0000 Subject: [PATCH] Patches from reg@shale.csir.co.za (Jeremy Lea) to fix run scripts when building on separate objdirs. --- webshell/tests/viewer/Makefile.in | 2 +- webshell/tests/viewer/mozilla-viewer.sh | 8 ++++---- xpfe/bootstrap/Makefile.in | 2 +- xpfe/bootstrap/mozilla-apprunner.sh | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/webshell/tests/viewer/Makefile.in b/webshell/tests/viewer/Makefile.in index a30b5c7a79a1..10b14d2f866d 100644 --- a/webshell/tests/viewer/Makefile.in +++ b/webshell/tests/viewer/Makefile.in @@ -157,7 +157,7 @@ CXXFLAGS += $(TOOLKIT_CFLAGS) include $(topsrcdir)/config/rules.mk -RUN_VIEWER_SCRIPT=mozilla-viewer.sh +RUN_VIEWER_SCRIPT= $(srcdir)/mozilla-viewer.sh install:: $(PROGRAM) $(RUN_VIEWER_SCRIPT) $(INSTALL) $(EXPORT_RESOURCE_SAMPLES) $(DIST)/bin/res/samples diff --git a/webshell/tests/viewer/mozilla-viewer.sh b/webshell/tests/viewer/mozilla-viewer.sh index bf4d628d7148..c13ac2848a81 100755 --- a/webshell/tests/viewer/mozilla-viewer.sh +++ b/webshell/tests/viewer/mozilla-viewer.sh @@ -28,18 +28,18 @@ ## the viewer work. ## -depth="" +tools="" # Running from dist/bin if [ -d components -a -d res ] then - depth="../.." + tools="../../build" else # Running from source dir if [ -f Makefile.in ] then - depth=`grep -w DEPTH Makefile.in | grep -e "\.\." | awk -F"=" '{ print $2; }'` + tools=`grep -w DEPTH Makefile.in | grep -e "\.\." | awk -F"=" '{ print $2; }'`/build fi fi -$depth/build/run-mozilla.sh viewer ${1+"$@"} +$tools/run-mozilla.sh viewer ${1+"$@"} diff --git a/xpfe/bootstrap/Makefile.in b/xpfe/bootstrap/Makefile.in index 20a0a1284865..49be42599637 100644 --- a/xpfe/bootstrap/Makefile.in +++ b/xpfe/bootstrap/Makefile.in @@ -95,7 +95,7 @@ CFLAGS += $(TOOLKIT_CFLAGS) include $(topsrcdir)/config/rules.mk -RUN_APPRUNNER_SCRIPT=mozilla-apprunner.sh +RUN_APPRUNNER_SCRIPT= $(srcdir)/mozilla-apprunner.sh install:: $(RUN_APPRUNNER_SCRIPT) $(INSTALL) $(RUN_APPRUNNER_SCRIPT) $(DIST)/bin diff --git a/xpfe/bootstrap/mozilla-apprunner.sh b/xpfe/bootstrap/mozilla-apprunner.sh index 1c3fcae9d2e6..507126b2aa23 100755 --- a/xpfe/bootstrap/mozilla-apprunner.sh +++ b/xpfe/bootstrap/mozilla-apprunner.sh @@ -28,18 +28,18 @@ ## the apprunner work. ## -depth="" +tools="" # Running from dist/bin if [ -d components -a -d res ] then - depth="../.." + tools="../../build" else # Running from source dir if [ -f Makefile.in ] then - depth=`grep -w DEPTH Makefile.in | grep -e "\.\." | awk -F"=" '{ print $2; }'` + tools=`grep -w DEPTH Makefile.in | grep -e "\.\." | awk -F"=" '{ print $2; }'`/build fi fi -$depth/build/run-mozilla.sh apprunner ${1+"$@"} +$tools/run-mozilla.sh apprunner ${1+"$@"}