summaryrefslogtreecommitdiffstats
path: root/chrome/installer/mac
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-05 01:27:51 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-05 01:27:51 +0000
commit456cface8888f0e39742243f25295d55c8922744 (patch)
treebcf4f2a41308526569238345b45159fe7da76a86 /chrome/installer/mac
parenteb24937118cd885574f5a78731a2b76975b074f4 (diff)
downloadchromium_src-456cface8888f0e39742243f25295d55c8922744.zip
chromium_src-456cface8888f0e39742243f25295d55c8922744.tar.gz
chromium_src-456cface8888f0e39742243f25295d55c8922744.tar.bz2
Use find_tool to locate xz tools in the scripts' own directories, falling back
to the Release and Debug PRODUCT_DIR directories. Inspired by Yandeks. Review URL: https://chromiumcodereview.appspot.com/11029031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160279 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/mac')
-rwxr-xr-xchrome/installer/mac/dirdiffer.sh2
-rwxr-xr-xchrome/installer/mac/dirpatcher.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/installer/mac/dirdiffer.sh b/chrome/installer/mac/dirdiffer.sh
index b0cd8fa..2e81928 100755
--- a/chrome/installer/mac/dirdiffer.sh
+++ b/chrome/installer/mac/dirdiffer.sh
@@ -150,7 +150,7 @@ GOOBSDIFF="$(find_tool goobsdiff)"
readonly GOOBSDIFF
readonly BZIP2="bzip2"
readonly GZIP="gzip"
-XZ="$(dirname "${0}")/xz"
+XZ="$(find_tool xz)"
readonly XZ
readonly GBS_SUFFIX='$gbs'
readonly BZ2_SUFFIX='$bz2'
diff --git a/chrome/installer/mac/dirpatcher.sh b/chrome/installer/mac/dirpatcher.sh
index e313cbd..7b68fca 100755
--- a/chrome/installer/mac/dirpatcher.sh
+++ b/chrome/installer/mac/dirpatcher.sh
@@ -91,7 +91,7 @@ GOOBSPATCH="$(find_tool goobspatch)"
readonly GOOBSPATCH
readonly BUNZIP2="bunzip2"
readonly GUNZIP="gunzip"
-XZDEC="$(dirname "${0}")/xzdec"
+XZDEC="$(find_tool xzdec)"
readonly XZDEC
readonly GBS_SUFFIX='$gbs'
readonly BZ2_SUFFIX='$bz2'