13b6048e07e86a45135496e1db07f58378eaf6e2
[git-tools-moved-to-github.git] / id-deb-build / id-pbuild-all.sh
1 #!/bin/sh
2 update=true
3 PKG="$1"
4 if test -z "$PKG"; then
5         echo "Specify .dsc file"
6         exit 1
7 fi
8 if test ! -e "$PKG"; then
9         echo "${PKG} does not exist"
10         exit 1
11 fi
12 for dist in intrepid hardy etch lenny; do
13         for arch in i386 amd64; do
14                 if $update; then
15                         DIST=$dist ARCH=$arch pbuilder update --override-config
16                 fi
17                 DIST=$dist ARCH=$arch pbuilder --build $PKG
18         done
19 done