diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-06-18 08:38:45 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-06-18 08:38:45 +0000 |
commit | a362d7cf4d25591f555667f12787c801055d42de (patch) | |
tree | 2fca4969af4473887d04f9aa26511aadb8f9c0ba /kiss | |
parent | 3e50e383f35228f53439d86d5fdf73daeb91f6b6 (diff) | |
download | cpt-a362d7cf4d25591f555667f12787c801055d42de.tar.gz |
kiss: Simplify manifest find.
FossilOrigin-Name: 2a7e7e985410cbc26b9278b2e12e37d306543568594b546e534d58de10cbe0f8
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -131,9 +131,8 @@ pkg_strip() { pkg_manifest() { # Store the file and directory list of the package. # Directories have a trailing '/' and the list is sorted in reverse. - (cd "$pkg_dir" && { - find ./* -type d -print | sed 's!$!/!'; find . \! -type d - }) | sort -r | sed -e ss.ss | tee manifest > "$pkg_db/$name/manifest" + (cd "$pkg_dir" && find ./* -type d -exec printf '%s/\n' {} + -or -print) | + sort -r | sed -e ss.ss | tee manifest > "$pkg_db/$name/manifest" } pkg_tar() { |