Bug 1356994 - Add a top-level directory to the libdmg-hfsplus source tarball. r?ted draft
authorMike Hommey <mh+mozilla@glandium.org>
Mon, 17 Apr 2017 17:24:40 +0900
changeset 563559 acfb87a3cbd34fb6a589a335cacabb330361f01a
parent 563558 f034caf9208d906ad78112971328391c8a54012f
child 624508 76f69188ca8cb0b8f65489c2450934cf872103f9
push id54349
push userbmo:mh+mozilla@glandium.org
push dateMon, 17 Apr 2017 08:25:46 +0000
reviewersted
bugs1356994
milestone55.0a1
Bug 1356994 - Add a top-level directory to the libdmg-hfsplus source tarball. r?ted Also change the README of the dmg tarball to point to the artifact url directly.
taskcluster/scripts/misc/build-libdmg-hfsplus.sh
--- a/taskcluster/scripts/misc/build-libdmg-hfsplus.sh
+++ b/taskcluster/scripts/misc/build-libdmg-hfsplus.sh
@@ -18,21 +18,22 @@ UPLOAD_DIR=$WORKSPACE/artifacts
 mkdir -p $UPLOAD_DIR $STAGE
 
 cd $WORKSPACE
 git clone --no-checkout $LIBDMG_REPOSITORY libdmg-hfsplus
 cd libdmg-hfsplus
 git checkout $LIBDMG_REV
 
 # Make a source archive
-git archive ${LIBDMG_REV} | xz > $UPLOAD_DIR/libdmg-hfsplus.tar.xz
+git archive --prefix=libdmg-hfsplus/ ${LIBDMG_REV} | xz > $UPLOAD_DIR/libdmg-hfsplus.tar.xz
 cmake .
 make -j$(getconf _NPROCESSORS_ONLN)
 
 # We only need the dmg and hfsplus tools.
 strip dmg/dmg hfs/hfsplus
 cp dmg/dmg hfs/hfsplus $STAGE
 
 cat >$STAGE/README<<EOF
 Built from ${LIBDMG_REPOSITORY} rev `git rev-parse ${LIBDMG_REV}`.
-Source is available in tooltool, digest `sha512sum $UPLOAD_DIR/libdmg-hfsplus.tar.xz`.
+Source is available as a taskcluster artifact:
+https://queue.taskcluster.net/v1/task/$TASK_ID/artifacts/public/libdmg-hfsplus.tar.xz
 EOF
 tar cf - -C $WORKSPACE `basename $STAGE` | xz > $UPLOAD_DIR/dmg.tar.xz