Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1405068: Look for xz.exe at the root of a checkout when making in…
Browse files Browse the repository at this point in the history
…cremental updates. r=bhearsum

MozReview-Commit-ID: 8R5kY8cntMc
  • Loading branch information
tomprince committed Oct 2, 2017
1 parent 5f83641 commit 241b385
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions tools/update-packaging/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,21 @@ if [[ -z "${MAR_OLD_FORMAT}" ]]; then
XZ=${XZ:-xz}
$XZ --version > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "xz was not found on this system!"
echo "exiting"
exit 1
# If $XZ is not set and not found on the path then this is probably
# running on a windows buildbot. Some of the Windows build systems have
# xz.exe in topsrcdir/xz/. Look in the places this would be in both a
# mozilla-central and comm-central build.
XZ="$(dirname "$(dirname "$(dirname "$0")")")/xz/xz.exe"
$XZ --version > /dev/null 2>&1
if [ $? -ne 0 ]; then
XZ="$(dirname "$(dirname "$(dirname "$(dirname "$0")")")")/xz/xz.exe"
$XZ --version > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "xz was not found on this system!"
echo "exiting"
exit 1
fi
fi
fi
else
MAR_OLD_FORMAT=1
Expand Down

0 comments on commit 241b385

Please sign in to comment.