diff options
author | Mark Ferrell <major@homeonderanged.org> | 2013-09-19 11:02:18 -0700 |
---|---|---|
committer | Mark Ferrell <major@homeonderanged.org> | 2013-09-19 11:02:18 -0700 |
commit | 5f9a35a962580490afd53996042f9e1faab90061 (patch) | |
tree | 60fe73ef35cf0b73a24352c13fc6918bd917881f | |
parent | 8a3977e144f5ea938567f62022b7bf214f7dce95 (diff) |
Get stdout into the fetch log
-rwxr-xr-x | scripts/builder/build-fetch | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/builder/build-fetch b/scripts/builder/build-fetch index cd46dea..3082612 100755 --- a/scripts/builder/build-fetch +++ b/scripts/builder/build-fetch @@ -206,15 +206,16 @@ esac if ! test -d "${BUILDER_TMPDIR}/fetch"; then mkdir -p "${BUILDER_TMPDIR}/fetch" fi +FETCH_LOG="${BUILDER_TMPDIR}/fetch/$(build_fetch_name "${1}").log" echo "fetch: ${1}" # FIXME this stuff needs a lot of work case "${1}" in -(git://*) build_fetch_git "${1}";; -(http://*) build_fetch_http "${1}";; -(ftp://*) build_fetch_http "${1}";; +(git://*) build_fetch_git "${1}" > "${FETCH_LOG}";; +(http://*) build_fetch_http "${1}" > "${FETCH_LOG}";; +(ftp://*) build_fetch_http "${1}" > "${FETCH_LOG}";; # Everything else is death (*) die "do not know how to handle '${1}'" -esac > "${BUILDER_TMPDIR}/fetch/$(build_fetch_name "${1}").log" +esac # vim: filetype=sh |