aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordancer <dancer>2001-08-25 14:16:12 +0000
committerdancer <dancer>2001-08-25 14:16:12 +0000
commit3db62a2c36564c42fbeb4c7358bf70b8de1e74e1 (patch)
tree02aa4c14f5b9bc3cac2f65c0a0d135438206639c
parentac6c4b5a051d071b5a68aff4b0342aca4c68da9e (diff)
downloadpbuilder-3db62a2c36564c42fbeb4c7358bf70b8de1e74e1.tar
pbuilder-3db62a2c36564c42fbeb4c7358bf70b8de1e74e1.tar.gz
implementing the pbuilder command
-rwxr-xr-xpbuilder19
-rwxr-xr-xpbuilder-buildpackage2
2 files changed, 14 insertions, 7 deletions
diff --git a/pbuilder b/pbuilder
index b0d7a55..3e45c8a 100755
--- a/pbuilder
+++ b/pbuilder
@@ -10,9 +10,16 @@ Copyright 2001 Junichi Uekawa
pbuilder [operation] [operation options]
-pbuilder create --basetgz base.tgz
-pbuilder update --basetgz base.tgz --distribution woody
-pbuilder build --basetgz base.tgz pbuilder_2.2.0-1.dsc
+command lines:
+pbuilder create [--basetgz base.tgz-path] [--distribution woody|sid]
+ Creates a base.tgz
+
+pbuilder update [--basetgz base.tgz-path] [--distribution woody|sid]
+ Updates a base.tgz
+
+pbuilder build [--buildplace temp-build-path] [--basetgz base.tgz-path] pbuilder_2.2.0-1.dsc
+ Builds using the base.tgz
+
EOF
exit 1
}
@@ -22,15 +29,15 @@ test -z "$1" && showhelp
case "$1" in
create)
shift;
- echo $@
+ /usr/sbin/pbuilder-createbuildenv $@
;;
update)
shift ;
- echo $@
+ /usr/sbin/pbuilder-updatebuildenv $@
;;
build)
shift ;
- echo $@
+ /usr/sbin/pbuilder-buildpackage $@
;;
*)
showhelp
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index 13b1bc6..1e4c52f 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -32,7 +32,7 @@ function checkbuilddep () {
PACKAGENAME="$1"
CHROOTEXEC="chroot $BUILDPLACE "
-echo cleaning the build env
+echo cleaning the build env "[$BUILDPLACE]"
rm -rf "$BUILDPLACE"
echo building the build env