1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-24 16:10:05 -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() {
# 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() {