From 4dbef9fd357e0aca276d69980527138203f7a9e6 Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Sat, 7 Mar 2009 10:29:36 +0900 Subject: implement --inputfile option. Copies extra files to inside chroot. --- pbuilder-checkparams | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pbuilder-checkparams') diff --git a/pbuilder-checkparams b/pbuilder-checkparams index 523e21e..4d56838 100755 --- a/pbuilder-checkparams +++ b/pbuilder-checkparams @@ -198,6 +198,19 @@ while [ -n "$1" ]; do SAVE_AFTER_LOGIN=yes; shift; ;; + --inputfile) + if [ ! -f "$2" ]; then + log "E: Input file $2 does not exist" + exit 1 + fi + INPUTFILE[${#INPUTFILE[@]}]="$2"; + shift; shift; + ;; + --outputfile) + OUTPUTFILE[${#OUTPUTFILE[@]}]="$2"; + shift; shift; + ;; + ## internal options. --internal-chrootexec) # specify custom chrootexec function -- this is internal debugging function -- cgit v1.2.3