summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.co.uk>2011-01-15 17:21:07 +0200
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.co.uk>2011-01-15 17:21:07 +0200
commit0f38ca72b5b079db6be1e66c5da35a4b7abc5a45 (patch)
treeed615abde065f540976da58bb85bf12b45b55e5e
parentca45f163ffb83a22c02323e8623d96da2d684ec4 (diff)
Add a script that creates release tarballs, to ease the release process in the future.
-rw-r--r--.gitattributes1
-rwxr-xr-xmake_tarballs.sh17
2 files changed, 18 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..1e25d14
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+make_tarballs.sh export-ignore
diff --git a/make_tarballs.sh b/make_tarballs.sh
new file mode 100755
index 0000000..57ca83a
--- /dev/null
+++ b/make_tarballs.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+# This script creates (pre-)release tarballs with their md5sums.
+# To use this script:
+# 1) Change QTGSTREAMER_VERSION in CMakeLists.txt to the final release version that you are making.
+# 2) Commit the result.
+# 3) Call this script to create the tarballs.
+
+VERSION=`cat CMakeLists.txt | grep QTGSTREAMER_VERSION | sed -r 's#set\(QTGSTREAMER_VERSION ([0-9\.]+)\)#\1#'`
+echo "Making tarballs for version $VERSION..."
+
+git archive --format=tar --prefix=qt-gstreamer-$VERSION/ HEAD | gzip -9 > qt-gstreamer-$VERSION.tar.gz
+md5sum qt-gstreamer-$VERSION.tar.gz > qt-gstreamer-$VERSION.tar.gz.md5
+
+git archive --format=tar --prefix=qt-gstreamer-$VERSION/ HEAD | bzip2 -9 > qt-gstreamer-$VERSION.tar.bz2
+md5sum qt-gstreamer-$VERSION.tar.bz2 > qt-gstreamer-$VERSION.tar.bz2.md5
+
+echo "Done."