Add basic debian build script.
authorCarl Hetherington <cth@carlh.net>
Sat, 8 Dec 2012 16:03:26 +0000 (16:03 +0000)
committerCarl Hetherington <cth@carlh.net>
Sat, 8 Dec 2012 16:03:26 +0000 (16:03 +0000)
builds/deb [new file with mode: 0755]

diff --git a/builds/deb b/builds/deb
new file mode 100755 (executable)
index 0000000..5425f6d
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+./waf dist
+rm -rf build/deb
+mkdir build/deb
+cd build/deb
+mv ../../*.tar.bz2 .
+TARBALL=`ls -1 *.tar.bz2`
+DEB_TARBALL=`echo $TARBALL | sed -e "s/dvdomatic-/dvdomatic_/" | sed -e "s/.tar.bz2/.orig.tar.bz2/"`
+echo "Renaming $TARBALL to $DEB_TARBALL"
+mv $TARBALL $DEB_TARBALL
+tar xjf $DEB_TARBALL
+cd dvdomatic-*
+dpkg-source -b .
+dpkg-buildpackage
+cp ../*.deb ../../../
+