зеркало из https://github.com/mozilla/gecko-dev.git
Patches from reg@shale.csir.co.za (Jeremy Lea) to fix run scripts when
building on separate objdirs.
This commit is contained in:
Родитель
db04cca101
Коммит
6f36be6af3
|
@ -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
|
||||
|
|
|
@ -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+"$@"}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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+"$@"}
|
||||
|
|
Загрузка…
Ссылка в новой задаче