From c452004aa2754affd7aad862dcad80b91f732c8f Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 13 Jan 2008 20:26:01 +0000 Subject: Major rewrite: Actually works now. --- localgitpdebuild | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'localgitpdebuild') diff --git a/localgitpdebuild b/localgitpdebuild index 0154854..4aba8f9 100755 --- a/localgitpdebuild +++ b/localgitpdebuild @@ -2,10 +2,14 @@ set -e +PRG=$(basename "$0") + function showhelp() { - echo "Usage: $(basename $0) POOL [debbuildopts] [-- pbuilderopts]" - echo "" - echo "Example: $(basename $0) sarge_with_hacks -B" + echo <2 showhelp @@ -42,15 +50,7 @@ while [ $# -gt 0 ]; do esac done -for pool in $pools; do - pdebuild \ - --buildresult $HOME/src/pbuild-$pool/ \ - --debbuildopts "-i\.git/ -I.git $debbuildopts" \ - $pdebuildopts \ - -- \ - --basetgz /var/cache/pbuilder/base-$pool.tgz \ - --buildplace /var/cache/pbuilder/build-$pool/ \ - --aptcache /var/cache/pbuilder/aptcache-$pool/ \ - --pkgname-logfile \ - $@ -done +git-buildpackage \ + --git-builder="localpdebuild -i\.git/ -I.git $debbuildopts $pools $@" \ + --git-cleaner="fakeroot debian/rules clean" \ + $gitopts -- cgit v1.2.3