mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Leverage -C command line flag when calling the mar executable to avoid
need to "cd" into $workdir. This allows us to locate the mar executable using a relative file path, which is a good thing since $PWD is sometimes not set correctly on the tinderbox systems. (This patch is based on discussion with Chase over IRC.)
This commit is contained in:
parent
92c3735483
commit
a40778962c
@ -48,6 +48,6 @@ STAGE_DIR = $(DIST)/update
|
||||
|
||||
full-update::
|
||||
mkdir -p $(STAGE_DIR)
|
||||
MAR=$(PWD)/$(DIST)/host/bin/mar $(srcdir)/make_full_update.sh $(STAGE_DIR)/update.mar $(DIST)/bin
|
||||
MAR=$(DIST)/host/bin/mar $(srcdir)/make_full_update.sh $(STAGE_DIR)/update.mar $(DIST)/bin
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -76,7 +76,7 @@ done
|
||||
|
||||
$BZIP2 -z9 "$manifest" && mv -f "$manifest.bz2" "$manifest"
|
||||
|
||||
(cd "$workdir" && eval "$MAR -c output.mar $targetfiles")
|
||||
eval "$MAR -C \"$workdir\" -c output.mar $targetfiles"
|
||||
mv -f "$workdir/output.mar" "$archive"
|
||||
|
||||
# cleanup
|
||||
|
@ -113,7 +113,7 @@ done
|
||||
|
||||
$BZIP2 -z9 "$manifest" && mv -f "$manifest.bz2" "$manifest"
|
||||
|
||||
(cd "$workdir" && eval "$MAR -c output.mar $archivefiles")
|
||||
eval "$MAR -C \"$workdir\" -c output.mar $archivefiles"
|
||||
mv -f "$workdir/output.mar" "$archive"
|
||||
|
||||
# cleanup
|
||||
|
Loading…
Reference in New Issue
Block a user