From 609105c1b19b92a526751f84264c79b87878411d Mon Sep 17 00:00:00 2001 From: dancer Date: Thu, 13 Feb 2003 08:51:36 +0000 Subject: +2003-02-13 Junichi Uekawa + + * 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. + --- pbuilder | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'pbuilder') 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 -- cgit v1.2.3