diff options
author | dancer <dancer> | 2004-11-16 23:54:46 +0000 |
---|---|---|
committer | dancer <dancer> | 2004-11-16 23:54:46 +0000 |
commit | 07864c34b7654149177a6c0deab15bf75bf4b0aa (patch) | |
tree | 523a86b3a4f0371eaa9254b8e0d9089ad2e53ee5 /examples | |
parent | af1a897961ea3b514d4e08065cbdafe3100011d5 (diff) | |
download | pbuilder-07864c34b7654149177a6c0deab15bf75bf4b0aa.tar pbuilder-07864c34b7654149177a6c0deab15bf75bf4b0aa.tar.gz |
+ * Add example script from Jamin W Collins for short-cut way of specifying distribution. (closes: #255165)
+ * Warn if build-depends is not satisfied when invoking dpkg-buildpackage -S (closes: #266349)
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/pbuilder-distribution.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/examples/pbuilder-distribution.sh b/examples/pbuilder-distribution.sh new file mode 100755 index 0000000..9845d6a --- /dev/null +++ b/examples/pbuilder-distribution.sh @@ -0,0 +1,30 @@ +#!/bin/sh +# script from Jamin W. Collins BTS: #255165 +# name this script 'pbuilder-woody', 'pbuilder-sid', 'pbuilder-sarge' etc. + +OPERATION=$1 +DISTRIBUTION=`basename $0 | cut -f2 -d '-'` +PROCEED=false +BASE_DIR="$HOME/pbuilder" +case $OPERATION in + create|update|build|clean|login|execute ) + PROCEED=true + ;; +esac +if ( $PROCEED == true ) then + shift + sudo pbuilder $OPERATION \ + --basetgz $BASE_DIR/$DISTRIBUTION-base.tgz \ + --distribution $DISTRIBUTION \ + --buildresult $BASE_DIR/result $@ +else + echo "Invalid command..." + echo "Valid commands are:" + echo " create" + echo " update" + echo " build" + echo " clean" + echo " login" + echo " execute" + exit 1 +fi |