Bug 1492664 - update libdmg-hfsplus to use TASKCLUSTER_ROOT_URL; r=glandium

--HG--
extra : rebase_source : 3a6917e97cdeb2153425c96e06b1e5f85d1782f0
extra : source : 911b4b0fb6835fc7d0caaea5d64a590563ca3104
This commit is contained in:
Dustin J. Mitchell 2018-12-10 20:14:52 +00:00
Родитель bc68c63ae0
Коммит baf08548f8
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -31,9 +31,16 @@ make -j$(getconf _NPROCESSORS_ONLN)
strip dmg/dmg hfs/hfsplus
cp dmg/dmg hfs/hfsplus $STAGE
# duplicate the functionality of taskcluster-lib-urls, but in bash..
if [ "$TASKCLUSTER_ROOT_URL" = "https://taskcluster.net" ]; then
queue_base='https://queue.taskcluster.net/v1'
else
queue_base="$TASKCLUSTER_ROOT_URL/api/queue/v1"
fi
cat >$STAGE/README<<EOF
Built from ${LIBDMG_REPOSITORY} rev `git rev-parse ${LIBDMG_REV}`.
Source is available as a taskcluster artifact:
https://queue.taskcluster.net/v1/task/$TASK_ID/artifacts/public/libdmg-hfsplus.tar.xz
$queue_base/task/$TASK_ID/artifacts/public/libdmg-hfsplus.tar.xz
EOF
tar cf - -C $WORKSPACE `basename $STAGE` | xz > $UPLOAD_DIR/dmg.tar.xz