summaryrefslogtreecommitdiff
path: root/localgitpdebuild
diff options
context:
space:
mode:
Diffstat (limited to 'localgitpdebuild')
-rwxr-xr-xlocalgitpdebuild32
1 files changed, 16 insertions, 16 deletions
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 <<EOF
+Usage: $PRG POOL [debbuildopts] [-- pbuilderopts]
+
+Example: $PRG sarge_with_hacks -B
+EOF
}
if [ $# -eq 0 ]; then
@@ -14,7 +18,7 @@ if [ $# -eq 0 ]; then
fi
pools=''
-pdebuildopts=''
+gitopts=''
debbuildopts=''
while [ $# -gt 0 ]; do
case $1 in
@@ -26,6 +30,10 @@ while [ $# -gt 0 ]; do
shift
break
;;
+ --git-*)
+ gitopts="$gitopts $1"
+ shift
+ ;;
--*)
echo "ERROR: Unknown argument \"$1\"!" &>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