kiss: Full posix find usage. Closes #95

This commit is contained in:
Dylan Araps 2020-01-28 23:38:54 +02:00
parent 1e4f9e89b2
commit 2e64975a59
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

7
kiss
View File

@ -508,9 +508,10 @@ pkg_manifest() (
# find: Print all files and directories and append '/' to directories. # find: Print all files and directories and append '/' to directories.
# sort: Sort the output in *reverse*. Directories appear *after* their # sort: Sort the output in *reverse*. Directories appear *after* their
# contents. # contents.
# sed: Remove the first character in each line (./dir -> /dir). # sed: Remove the first character in each line (./dir -> /dir) and
find . -mindepth 1 -type d -exec printf '%s/\n' {} + -or -print | # remove all lines which only contain '.'.
sort -r | sed ss.ss > "$pkg_dir/$1/$pkg_db/$1/manifest" find . -type d -exec printf '%s/\n' {} + -o -print |
sort -r | sed '/^\.\/$/d;ss.ss' > "$pkg_dir/$1/$pkg_db/$1/manifest"
) )
pkg_tar() { pkg_tar() {