Patches from reg@shale.csir.co.za (Jeremy Lea) to fix run scripts when

building on separate objdirs.
This commit is contained in:
ramiro%netscape.com 1999-04-01 20:36:29 +00:00
Родитель db04cca101
Коммит 6f36be6af3
4 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -157,7 +157,7 @@ CXXFLAGS += $(TOOLKIT_CFLAGS)
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk
RUN_VIEWER_SCRIPT=mozilla-viewer.sh RUN_VIEWER_SCRIPT= $(srcdir)/mozilla-viewer.sh
install:: $(PROGRAM) $(RUN_VIEWER_SCRIPT) install:: $(PROGRAM) $(RUN_VIEWER_SCRIPT)
$(INSTALL) $(EXPORT_RESOURCE_SAMPLES) $(DIST)/bin/res/samples $(INSTALL) $(EXPORT_RESOURCE_SAMPLES) $(DIST)/bin/res/samples

Просмотреть файл

@ -28,18 +28,18 @@
## the viewer work. ## the viewer work.
## ##
depth="" tools=""
# Running from dist/bin # Running from dist/bin
if [ -d components -a -d res ] if [ -d components -a -d res ]
then then
depth="../.." tools="../../build"
else else
# Running from source dir # Running from source dir
if [ -f Makefile.in ] if [ -f Makefile.in ]
then 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
fi fi
$depth/build/run-mozilla.sh viewer ${1+"$@"} $tools/run-mozilla.sh viewer ${1+"$@"}

Просмотреть файл

@ -95,7 +95,7 @@ CFLAGS += $(TOOLKIT_CFLAGS)
include $(topsrcdir)/config/rules.mk 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)
$(INSTALL) $(RUN_APPRUNNER_SCRIPT) $(DIST)/bin $(INSTALL) $(RUN_APPRUNNER_SCRIPT) $(DIST)/bin

Просмотреть файл

@ -28,18 +28,18 @@
## the apprunner work. ## the apprunner work.
## ##
depth="" tools=""
# Running from dist/bin # Running from dist/bin
if [ -d components -a -d res ] if [ -d components -a -d res ]
then then
depth="../.." tools="../../build"
else else
# Running from source dir # Running from source dir
if [ -f Makefile.in ] if [ -f Makefile.in ]
then 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
fi fi
$depth/build/run-mozilla.sh apprunner ${1+"$@"} $tools/run-mozilla.sh apprunner ${1+"$@"}