summaryrefslogtreecommitdiff
path: root/make_tarballs.sh
blob: 57ca83a2b41097923a23111dfc7fb53d4c5e193c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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."