From 091894173cb71295ebd3464d8ade56974266f57b Mon Sep 17 00:00:00 2001 From: dancer Date: Mon, 15 Dec 2003 23:23:29 +0000 Subject: pbuilder execute with command-line options support. Documentation, and mass-install script. --- examples/execute_installtest.sh | 17 +++++++++++++++++ examples/execute_paramtest.sh | 15 +++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 examples/execute_installtest.sh create mode 100755 examples/execute_paramtest.sh (limited to 'examples') diff --git a/examples/execute_installtest.sh b/examples/execute_installtest.sh new file mode 100755 index 0000000..ba54f9d --- /dev/null +++ b/examples/execute_installtest.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# pbuilder example script. +# Copyright 2003 Junichi Uekawa +#Distributed under GPL version 2 or later + +#before running this script, make sure you have an up-to-date system with +# pbuilder update. +# $Id$ + + +# This will install a package using APT and see if that fails. + +set -ex + +apt-get install -y "$1" + + diff --git a/examples/execute_paramtest.sh b/examples/execute_paramtest.sh new file mode 100755 index 0000000..39b409d --- /dev/null +++ b/examples/execute_paramtest.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# pbuilder example script. +# Copyright 2003 Junichi Uekawa +#Distributed under GPL version 2 or later + + +# this is parameter testing script for +# pbuilder execute. +# This program will output the command-line +# $Id$ + + +echo "--- parameters given to this script" +echo "[$@]" + -- cgit v1.2.3