[pkg-fso-commits] [SCM] GSM user space multiplexer branch, debian, updated. debian/0.9.2.2-1-6-g4624a00

Joachim Breitner mail at joachim-breitner.de
Tue Jan 27 18:36:28 UTC 2009


The following commit has been merged in the debian branch:
commit ef37a6d733078b17b675c9e485ccbc51155a8091
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Tue Jan 27 19:23:26 2009 +0100

    snapshot script

diff --git a/debian/snapshot-release.sh b/debian/snapshot-release.sh
new file mode 100755
index 0000000..5a95e17
--- /dev/null
+++ b/debian/snapshot-release.sh
@@ -0,0 +1,63 @@
+#!/bin/bash
+
+set -e
+
+# This script is used by nomeata to 
+# * Create a tarball from the upstream git branch 
+# * Insert it into pristine tar
+# * Merge it into Debian
+# * Create a new debian/changelog entry 
+
+# It requires the $VERSION tag to be set, and will create upstream/$VERSION
+
+VERSION=$1
+SOURCENAME=gsm0710muxd
+
+if [ -z "$VERSION" -o "$VERSION" = "--help" ]
+then
+	echo "Usage:"
+	echo "	$0 <version>"
+	echo "Whereas a tag upstream/<version> exists"
+	exit 0
+fi
+
+if [ ! -e .git ]
+then
+	echo "Please run in the root of the git tree"
+	exit 1
+fi
+
+
+TARBALL=../$SOURCENAME_"$VERSION".orig.tar.gz
+TAG="upstream/$VERSION"
+
+if !  git tag -l "$VERSION" | fgrep -q "$VERSION"
+then
+	echo "Tag $VERSION not found"
+	exit 1
+fi
+
+if ! git status | fgrep -q 'nothing to commit'
+then
+	echo "Uncommited changes:"
+	git status
+	exit 1
+fi
+
+set -x
+
+git checkout "$VERSION"
+
+./autogen.sh
+
+make distdir=$SOURCENAME-"$VERSION" dist
+
+mv $SOURCENAME-"$VERSION".tar.gz "$TARBALL"
+
+git clean -f -d
+
+git checkout debian
+
+git-import-orig --upstream-version=$VERSION $TARBALL
+
+echo "Done!"

-- 
GSM user space multiplexer



More information about the pkg-fso-commits mailing list