aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-checkparams
diff options
context:
space:
mode:
authordancer <dancer>2001-08-28 10:14:58 +0000
committerdancer <dancer>2001-08-28 10:14:58 +0000
commit8c8fb5b93321fb32de2820dcfccd27c7fda43cba (patch)
tree22004ec462d06f27b6433caf119da39d224bf8b6 /pbuilder-checkparams
parent48a8e94a0fbbfbb0d78cf3672a99b82c7b788324 (diff)
downloadpbuilder-8c8fb5b93321fb32de2820dcfccd27c7fda43cba.tar
pbuilder-8c8fb5b93321fb32de2820dcfccd27c7fda43cba.tar.gz
making ready for uploading to Debian archive, changing depends line to debootstrap with versioned depends. Re-tabbing, extactbuildplace function is created to move common code out from create and build. added an error message for unknown parameter option. added a TAGS target to the makefile to make ETAGS work.
Diffstat (limited to 'pbuilder-checkparams')
-rwxr-xr-xpbuilder-checkparams70
1 files changed, 37 insertions, 33 deletions
diff --git a/pbuilder-checkparams b/pbuilder-checkparams
index 574b875..b64126b 100755
--- a/pbuilder-checkparams
+++ b/pbuilder-checkparams
@@ -7,34 +7,34 @@
BASEBUILDPLACE="$BUILDPLACE"
BUILDPLACE="$BUILDPLACE/$$"
-while [ -n $1 ]; do
- case "$1" in
- --basetgz)
- BASETGZ=$(readlink -f "$2");
- shift; shift;
- ;;
- --buildplace)
- BUILDPLACE=$(readlink -f "$2");
- shift; shift;
- ;;
- --mirror)
- MIRROR="$2";
- shift; shift;
- ;;
- --http-proxy)
- export http_proxy="$2";
- shift; shift;
- ;;
- --distribution)
- DISTRIBUTION="$2";
- shift; shift;
- ;;
- --buildresult)
- BUILDRESULT=$(readlink -f "$2");
- shift; shift;
- ;;
- --help)
- cat <<EOF
+while [ -n "$1" ]; do
+ case "$1" in
+ --basetgz)
+ BASETGZ=$(readlink -f "$2");
+ shift; shift;
+ ;;
+ --buildplace)
+ BUILDPLACE=$(readlink -f "$2");
+ shift; shift;
+ ;;
+ --mirror)
+ MIRROR="$2";
+ shift; shift;
+ ;;
+ --http-proxy)
+ export http_proxy="$2";
+ shift; shift;
+ ;;
+ --distribution)
+ DISTRIBUTION="$2";
+ shift; shift;
+ ;;
+ --buildresult)
+ BUILDRESULT=$(readlink -f "$2");
+ shift; shift;
+ ;;
+ --help)
+ cat <<EOF
Command Line Options:
--basetgz [base.tgz location]
--buildplace [location of build]
@@ -43,11 +43,15 @@ Command Line Options:
--distribution [distribution(woody/sid)]
--buildresult [location-to-copy-build-result]
EOF
- exit 1;
- ;;
- *)
- break;
- ;;
+ exit 1;
+ ;;
+ --*)
+ echo "Error: Unknown option [$1] was specified " >&2
+ exit 1;
+ ;;
+ *)
+ break;
+ ;;
esac
done