aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-18 08:38:45 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-18 08:38:45 +0000
commita362d7cf4d25591f555667f12787c801055d42de (patch)
tree2fca4969af4473887d04f9aa26511aadb8f9c0ba
parent3e50e383f35228f53439d86d5fdf73daeb91f6b6 (diff)
downloadcpt-a362d7cf4d25591f555667f12787c801055d42de.tar.gz
kiss: Simplify manifest find.
FossilOrigin-Name: 2a7e7e985410cbc26b9278b2e12e37d306543568594b546e534d58de10cbe0f8
-rwxr-xr-xkiss5
1 files changed, 2 insertions, 3 deletions
diff --git a/kiss b/kiss
index 5f3e440..ab7a5bb 100755
--- a/kiss
+++ b/kiss
@@ -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() {