misc: nit

This commit is contained in:
Dylan Araps 2021-07-03 14:34:13 +00:00
parent 402e5cf5de
commit 95e3fc8f8e
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

12
kiss
View File

@ -568,16 +568,16 @@ pkg_manifest() (
cd "${2:-$pkg_dir}/$1" cd "${2:-$pkg_dir}/$1"
# find: Print all files and directories and append '/' to directories. # find: Print all files and directories and append '/' to directories.
{
find . -type d -exec printf '%s/\n' {} +
find . ! -type d -print
} |
# 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) and # sed: Remove the first character in each line (./dir -> /dir) and
# remove all lines which only contain '.'. # remove all lines which only contain '.'.
{ sort -r | sed '/^\.\/$/d;ss.ss' > "$PWD/$pkg_db/$1/manifest"
find . -type d -exec printf '%s/\n' {} +
find . ! -type d -print
} | sort -r |
sed '/^\.\/$/d;ss.ss' > "${2:-$pkg_dir}/$1/$pkg_db/$1/manifest"
) )
pkg_etcsums() ( pkg_etcsums() (