3 # We want to catch any unexpected failure, and exit immediately
6 # Download helper for cp, to be called from the download wrapper script
9 # .../cp [-q] OUT_FILE SRC_FILE
12 # LOCALFILES: the cp command to call
14 # 'cp' usually does not print anything on its stdout, whereas the
15 # other download backends, even if not verbose, at least print some
16 # progress information.
17 # Make 'cp' verbose by default, so it behaves a bit like the others.
20 while getopts :q OPT
; do
23 \?) printf "unknown option '%s'\n" "${OPTARG}" >&2; exit 1;;
31 # Caller needs to single-quote its arguments to prevent them from
32 # being expanded a second time (in case there are spaces in them)
34 eval ${LOCALFILES} "${@}"
37 _localfiles
${verbose} "'${source}'" "'${output}'"