diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-05 21:14:32 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-05 21:14:32 -0500 |
commit | 9b235734a1810e415acfea2eefaeff008a8073a6 (patch) | |
tree | 2dfaa3c78d3f741c54e0e413e699c859e95626c7 /src | |
parent | 59633ede257e3ebbc81a55e191fee2e83400d477 (diff) |
librerelease: list staged source files in a sane way
Diffstat (limited to 'src')
-rwxr-xr-x | src/abslibre-tools/librerelease | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index b77b6ec..1e07638 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -181,10 +181,11 @@ main() { # The different modes (sans 'usage') ########################################### pretty_print_packages() { - find "$WORKDIR/staging/" -mindepth 1 -type d -not -empty -printf '%f\n' | sort | - while read -r repo; do - msg2 "$repo" - find -L "${WORKDIR}/staging/${repo}" -type f -printf "%f\n" | sort + find "$WORKDIR/staging/" -mindepth 1 -maxdepth 1 -type d -not -empty | sort | + while read -r path; do + msg2 "${path##*/}" + cd "$path" + find -L . -type f | sed 's|^\./| |' | sort done } |