зеркало из https://github.com/mozilla/gecko-dev.git
No bug: Allow diffoscope wrapper to unpack arbitrary packages, not just ones named target; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D86758
This commit is contained in:
Родитель
3da9fc2299
Коммит
47e9105c81
|
@ -16,17 +16,21 @@ export PATH=/builds/worker/bin:$PATH
|
|||
# Plus dmg files are not supported yet.
|
||||
|
||||
case "$ORIG_URL" in
|
||||
*/target.zip|*/target.apk)
|
||||
*.zip|*.apk)
|
||||
curl -L "$ORIG_URL" > a.zip
|
||||
curl -L "$NEW_URL" > b.zip
|
||||
unzip -d a a.zip
|
||||
unzip -d b b.zip
|
||||
;;
|
||||
*/target.tar.bz2)
|
||||
*.tar.bz2)
|
||||
curl -L "$ORIG_URL" | tar -C a -jxf -
|
||||
curl -L "$NEW_URL" | tar -C b -jxf -
|
||||
;;
|
||||
*/target.dmg)
|
||||
*.tar.gz)
|
||||
curl -L "$ORIG_URL" | tar -C a -zxf -
|
||||
curl -L "$NEW_URL" | tar -C b -zxf -
|
||||
;;
|
||||
*.dmg)
|
||||
for tool in lipo otool; do
|
||||
ln -s $MOZ_FETCHES_DIR/cctools/bin/x86_64-apple-darwin*-$tool bin/$tool
|
||||
done
|
||||
|
|
Загрузка…
Ссылка в новой задаче