aboutsummaryrefslogtreecommitdiff
path: root/pbuilder
diff options
context:
space:
mode:
authordancer <dancer>2003-02-13 08:51:36 +0000
committerdancer <dancer>2003-02-13 08:51:36 +0000
commit609105c1b19b92a526751f84264c79b87878411d (patch)
tree4106abfb445510657b0f6a560193339a8b98cf8a /pbuilder
parent9bbc9cb948a45ca4e58f7988c33d6a69bba0fbb2 (diff)
downloadpbuilder-609105c1b19b92a526751f84264c79b87878411d.tar
pbuilder-609105c1b19b92a526751f84264c79b87878411d.tar.gz
+2003-02-13 Junichi Uekawa <dancer@debian.org>
+ + * Documentation/pbuilder-doc.xml: document an example script to + start up ssh inside pbuilder-uml. + + * pbuilder-checkparams: support execute option. + + * Documentation/pbuilder-doc.xml: document pbuilder-uml more, + and execute command. + + * pbuilder-modules: update copyright statement. + document "execute" + + * pbuilder-user-mode-linux.1: document "execute" command + + * pbuilder-user-mode-linux: implement execute command. + + * pbuilder.8: document "execute" + + * pbuilder: "execute" command. +
Diffstat (limited to 'pbuilder')
-rwxr-xr-xpbuilder16
1 files changed, 16 insertions, 0 deletions
diff --git a/pbuilder b/pbuilder
index 1f9df25..3626b4b 100755
--- a/pbuilder
+++ b/pbuilder
@@ -45,6 +45,22 @@ File extracted to: $BUILDPLACE
"
chroot "$BUILDPLACE" bin/bash
;;
+ execute)
+ # try to execute arbitrary program.
+ shift
+ . /usr/lib/pbuilder/pbuilder-checkparams
+ EXECPROGRAM="$1"
+ if [ ! -f "${EXECPROGRAM}" ]; then
+ echo "Command line parameter [$EXECPROGRAM] does not exist" >&2
+ exit 1;
+ fi;
+ extractbuildplace
+ trap umountproc_cleanbuildplace exit
+ RUNNAME="$BUILDPLACE/run"
+ cat "$EXECPROGRAM" > "$RUNNAME"
+ chmod a+x "$RUNNAME"
+ chroot "$BUILDPLACE" /run
+ ;;
*)
. /usr/lib/pbuilder/pbuilder-modules
showhelp