diff --git a/kiss b/kiss index 9ebcb95..890e543 100755 --- a/kiss +++ b/kiss @@ -568,16 +568,16 @@ pkg_manifest() ( cd "${2:-$pkg_dir}/$1" # 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 # contents. # sed: Remove the first character in each line (./dir -> /dir) and # remove all lines which only contain '.'. - { - 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" + sort -r | sed '/^\.\/$/d;ss.ss' > "$PWD/$pkg_db/$1/manifest" ) pkg_etcsums() (