diff options
author | Junichi Uekawa <dancer@netfort.gr.jp> | 2009-03-07 10:29:36 +0900 |
---|---|---|
committer | Junichi Uekawa <dancer@netfort.gr.jp> | 2009-03-07 10:29:36 +0900 |
commit | 4dbef9fd357e0aca276d69980527138203f7a9e6 (patch) | |
tree | 983d32a0750f506f54744c188ab74a7613924055 /pbuilder-checkparams | |
parent | ea7049c3a6ed765a894543a9711a00bf01eda63b (diff) | |
download | pbuilder-4dbef9fd357e0aca276d69980527138203f7a9e6.tar pbuilder-4dbef9fd357e0aca276d69980527138203f7a9e6.tar.gz |
implement --inputfile option.
Copies extra files to inside chroot.
Diffstat (limited to 'pbuilder-checkparams')
-rwxr-xr-x | pbuilder-checkparams | 13 |
1 files changed, 13 insertions, 0 deletions
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 |