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-modules | |
parent | ea7049c3a6ed765a894543a9711a00bf01eda63b (diff) | |
download | pbuilder-4dbef9fd357e0aca276d69980527138203f7a9e6.tar pbuilder-4dbef9fd357e0aca276d69980527138203f7a9e6.tar.gz |
implement --inputfile option.
Copies extra files to inside chroot.
Diffstat (limited to 'pbuilder-modules')
-rw-r--r-- | pbuilder-modules | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pbuilder-modules b/pbuilder-modules index 12e4da7..ac03ad8 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -1,7 +1,7 @@ #! /bin/bash # common modules for pbuilder. # pbuilder -- personal Debian package builder -# Copyright (C) 2001-2007 Junichi Uekawa +# Copyright (C) 2001-2009 Junichi Uekawa # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -489,6 +489,19 @@ function create_basetgz() { ) } +function copyinputfile() { + # copy files to inside chroot, copy all files specified by INPUTFILE[] parameter. + TARGETDIR="$1" + if [ -z "$TARGETDIR" ]; then + log "E: Unexpected error in copyinputfile" + exit 1x + fi + if [ -n "$INPUTFILE" ]; then + log "I: copy ${INPUTFILE[*]} to taget directory" + cp "${INPUTFILE[@]}" "${TARGETDIR}" + fi +} + # all trap hooks that should lead to 'exit'; and error exit. function cleanbuildplace_trap () { cleanbuildplace |