1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 16:40:07 -07:00

kiss: Simplify manifest find.

This commit is contained in:
Dylan Araps 2019-06-18 11:38:46 +03:00
parent c08797334f
commit 8de5bd2594

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() {