build.sh
changeset 4 de79ef5d609d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build.sh	Thu Jul 17 20:22:26 2008 +0200
@@ -0,0 +1,25 @@
+#! /bin/bash
+
+if [ ! -e build.sh ]; then
+	echo "Not in thg-debian repo."
+	exit
+fi
+if [ "$1" == "" ]; then
+	echo "Syntax: build.sh thg-repo-path"
+	exit
+fi
+thgrepo=$1
+
+rm build -rf
+mkdir -p build/src
+hg -R $thgrepo archive -r0.4rc2 build/src
+mkdir build/src/debian
+hg archive build/src/debian
+
+mkdir -p dist
+distdir=$(pwd)/dist
+pushd build/src/
+dpkg-buildpackage -rfakeroot
+fakeroot -- dpkg-deb --build debian/tortoisehg $distdir
+popd
+