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:
darin%meer.net 2005-06-22 00:32:16 +00:00
parent 92c3735483
commit a40778962c
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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