From 24fb219fa01e92ddb5159709db57f8db17f70df2 Mon Sep 17 00:00:00 2001 From: William King Date: Fri, 8 Jan 2016 10:14:19 -0800 Subject: [PATCH] Adding a file extension to the package build logs --- debian/util.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/debian/util.sh b/debian/util.sh index fd37c33f71..022daa2048 100755 --- a/debian/util.sh +++ b/debian/util.sh @@ -454,26 +454,26 @@ build_all () { dsc_opts="$dsc_opts -f${modtmp}"; fi [ -n "$orig" ] || orig="$(create_orig $orig_opts HEAD | tail -n1)" mkdir -p ../log - > ../log/changes + > ../log/changes.txt echo; echo; echo; echo trap 'echo "Killing children...">&2; for x in $(jobs -p); do kill $x; done' EXIT if [ "${orig:0:2}" = ".." ]; then - echo "true" > ../log/builds-ok + echo "true" > ../log/builds-ok.txt for distro in $distros; do echo "Creating $distro dsc..." >&2 - local dsc="$(create_dsc $dsc_opts $distro $orig 2>../log/$distro | tail -n1)" + local dsc="$(create_dsc $dsc_opts $distro $orig 2>../log/$distro.txt | tail -n1)" echo "Done creating $distro dsc." >&2 if [ "${dsc:0:2}" = ".." ]; then local lopts="-b" for arch in $archs; do { echo "Building $distro-$arch debs..." >&2 - local changes="$(build_debs $lopts $deb_opts $distro $dsc $arch 2>../log/$distro-$arch | tail -n1)" + local changes="$(build_debs $lopts $deb_opts $distro $dsc $arch 2>../log/$distro-$arch.txt | tail -n1)" echo "Done building $distro-$arch debs." >&2 if [ "${changes:0:2}" = ".." ]; then - echo "$changes" >> ../log/changes + echo "$changes" >> ../log/changes.txt else - echo "false" > ../log/builds-ok + echo "false" > ../log/builds-ok.txt fi } & $par || wait @@ -485,8 +485,8 @@ build_all () { fi [ -z "$modlist" ] || rm -f $modtmp trap - EXIT - cat ../log/changes - test "$(cat ../log/builds-ok)" = true || exit 1 + cat ../log/changes.txt + test "$(cat ../log/builds-ok.txt)" = true || exit 1 } usage () {