Commit c83fb0ff authored by Simon Hausmann's avatar Simon Hausmann Committed by Pierre Rossi
Browse files

Small fixes to the packaging script


* Add a .tag file to the archive that contains the sha1 the package was created from. This is useful for diagnostics.
* Use bash and enforce error handling (it's easy to accidentally include bashisms)

Change-Id: I8141b10d50bbf55a470d5a84ed0ae801742b57dc
Reviewed-by: default avatarZeno Albisser <zeno.albisser@digia.com>
Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
No related merge requests found
Showing with 9 additions and 2 deletions
#!/bin/sh
#!/bin/bash
#############################################################################
#
......@@ -40,7 +40,7 @@
# $QT_END_LICENSE$
#
#############################################################################
set -e
if [ $# -ne 2 ]; then
echo "Usage: $0 git-ref release-name"
......@@ -61,5 +61,12 @@ git archive $THIRD_PARTY_REF --format tar --prefix=$RELEASE_NAME/src/3rdparty/ -
tar --concatenate --file=$OUTDIR/$RELEASE_NAME.tar $OUTDIR/$RELEASE_NAME.src.3rdparty.tar
rm $OUTDIR/$RELEASE_NAME.src.3rdparty.tar
mkdir $RELEASE_NAME
trap "{ rm -rf $RELEASE_NAME ; exit 255}" EXIT
echo `git rev-parse $QTWEBENGINE_REF` > $RELEASE_NAME/.tag
tar -r --file=$OUTDIR/$RELEASE_NAME.tar $RELEASE_NAME/.tag
trap - EXIT
rm -r $RELEASE_NAME
gzip $OUTDIR/$RELEASE_NAME.tar
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment