bug 481901: Use tee to dump hdiutil output to log & file when mounting dmgs for repacking. r=pike

This commit is contained in:
Ben Hearsum 2009-03-11 10:49:27 -04:00
parent 35f444d782
commit 8221d3c468

View File

@ -168,7 +168,7 @@ UNMAKE_PACKAGE = \
}; \
unset NEXT_ROOT; \
export PAGER=true; \
expect $(_ABS_MOZSRCDIR)/build/package/mac_osx/installdmg.ex $(UNPACKAGE) > hdi.output; \
expect $(_ABS_MOZSRCDIR)/build/package/mac_osx/installdmg.ex $(UNPACKAGE) | tee hdi.output; \
DEV_NAME=`perl -n -e 'if($$_=~/(\/dev\/disk[^ ]*)/) {print $$1."\n";exit;}'< hdi.output`; \
MOUNTPOINT=`perl -n -e 'split(/\/dev\/disk[^ ]*/,$$_,2);if($$_[1]=~/(\/.[^\r]*)/) {print $$1;exit;}'< hdi.output` || cleanup 1; \
rsync -a "$${MOUNTPOINT}/$(_APPNAME)" $(MOZ_PKG_DIR) || cleanup 1; \