kiss: Simplify manifest find.

This commit is contained in:
Dylan Araps 2019-06-18 11:38:46 +03:00
parent c08797334f
commit 8de5bd2594
1 changed files with 2 additions and 3 deletions

5
kiss
View File

@ -131,9 +131,8 @@ pkg_strip() {
pkg_manifest() { pkg_manifest() {
# Store the file and directory list of the package. # Store the file and directory list of the package.
# Directories have a trailing '/' and the list is sorted in reverse. # Directories have a trailing '/' and the list is sorted in reverse.
(cd "$pkg_dir" && { (cd "$pkg_dir" && find ./* -type d -exec printf '%s/\n' {} + -or -print) |
find ./* -type d -print | sed 's!$!/!'; find . \! -type d sort -r | sed -e ss.ss | tee manifest > "$pkg_db/$name/manifest"
}) | sort -r | sed -e ss.ss | tee manifest > "$pkg_db/$name/manifest"
} }
pkg_tar() { pkg_tar() {