diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-04 18:59:00 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-04 19:47:46 (EST) |
commit | cc04fd727f847bff912e8d8d3a14b06765928fb5 (patch) | |
tree | 4acc59e5bfb03ab54dc527ca05728f394ef75bde /src/cmd | |
parent | 922282227ff8e300c0159e9f75c318d3991ac14d (diff) |
cmd/build: List built files
This makes use of the extra space between the "Build Results" and
"*.changes" headers.
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/build.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/build.sh b/src/cmd/build.sh index 81e7343..3a3da4f 100644 --- a/src/cmd/build.sh +++ b/src/cmd/build.sh @@ -110,6 +110,7 @@ _cmd_build_build() local build_date= local es= local changes= + local opks= local opk= local build_time= @@ -163,11 +164,13 @@ _cmd_build_build() changes="${_cmd_build_pkg_dir}/../$(: \ )${source}_${version}_${host_arch}_${host_plat}.changes" if [ -r "${changes}" ]; then + opks="$(sed -n '/^Files:/,${ s/^ [0-9][0-9]* ..* //p; };' \ + "${changes}")" _cmd_build_header '-' 'Build Results' + printf '%s\n' "${changes##*/}" ${opks} _cmd_build_header '~' "${changes##*/}" cat "${changes}" - for opk in $(sed -n '/^Files:/,${ s/^ [0-9][0-9]* ..* //p; };' \ - "${changes}"); do + for opk in ${opks}; do _cmd_build_header '~' "${opk}" opk="${_cmd_build_pkg_dir}/../${opk}" tar -xzOf "${opk}" control.tar.gz | tar -xzO ./control |