]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
Add the debuild-ppa.sh script for Launchpad PPA build convenience.
authorDarik Horn <dajhorn@vanadac.com>
Mon, 21 Mar 2011 18:44:36 +0000 (13:44 -0500)
committerDarik Horn <dajhorn@vanadac.com>
Mon, 21 Mar 2011 18:44:36 +0000 (13:44 -0500)
debian/debuild-ppa.sh [new file with mode: 0755]

diff --git a/debian/debuild-ppa.sh b/debian/debuild-ppa.sh
new file mode 100755 (executable)
index 0000000..d7f8f80
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+#
+# Launchpad PPA build helper.
+#
+
+PPA_USER=${PPA_USER:-$(whoami)}
+PPA_NAME=spl
+PPA_DISTRIBUTION_LIST='lucid maverick natty'
+
+if [ ! -d debian/ ]
+then
+       echo 'Error: The debian/ directory is not in the current working path.'
+       exit 1
+fi
+
+for ii in $PPA_DISTRIBUTION_LIST
+do
+       # Change the first line of the debian/changelog file
+       # from: MyPackage (1.2.3-4) unstable; urgency=low
+       # to: MyPackage (1.2.3-4~distname) distname; urgency=low
+       debchange --local="~$ii" --distribution="$ii" dummy
+       sed -i -e '2,8d' debian/changelog
+
+       debuild -S -sd
+       git checkout debian/changelog
+done