summaryrefslogtreecommitdiffstats
path: root/src/cmd
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-04 18:22:48 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-04 18:49:54 (EST)
commit71b20cd9e1916aeaffd4cdf0d241e71ee7975094 (patch)
tree3ddd5f70be4718a3fc9c3975f12f225184a3a307 /src/cmd
parent26b01c58d18bde9c7c2385f40c0d5e13d5c5650b (diff)
cmd/build: Filter session directory in log
As in sbuild (>= 0.62.0-1, Debian bug #605763), filtering makes build logs comparable with diff.
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/build.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/build.sh b/src/cmd/build.sh
index e254abe..6d72046 100644
--- a/src/cmd/build.sh
+++ b/src/cmd/build.sh
@@ -128,6 +128,8 @@ _cmd_build_build()
Host-Platform: ${host_plat}
Distribution: ${dist}
Build-Date: ${build_date}
+
+ Filter: Replacing "$(session_dir)" with "<<SESSIONDIR>>"
EOF
es=0
@@ -293,7 +295,8 @@ cmd_build_main()
"${host_arch}" "${host_plat}" \
"${dist}" "${@}" 2>&1
printf '%d' ${?} 1>&3
- } | tee "${log}" 1>&2
+ } | sed "/^Filter: /!s|$(session_dir)|<<SESSIONDIR>>|" \
+ | tee "${log}" 1>&2
} 3>&1 | {
read es
exit ${es}