diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-21 16:03:10 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-21 16:03:10 +0000 |
commit | 4ca0c863aba0409ad7f6d20357412b12d1e5a605 (patch) | |
tree | 630fce4a96bad8f3e8dd7532620e446c74806c6c /kiss | |
parent | 837c942267aff4b249b306b62b81d727a2cdb1a0 (diff) | |
download | cpt-4ca0c863aba0409ad7f6d20357412b12d1e5a605.tar.gz |
kiss: better comment
FossilOrigin-Name: 3e7dec851a4383b79a35067c5ad58052e810e38d392e41c77804ea933b7ba85b
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -292,9 +292,10 @@ pkg_manifest() ( # prior directory before being able to continue. cd "$pkg_dir/$1" - # Find all files and directories in the package. Directories are printed - # with a trailing forward slash '/'. The list is then reversed with - # directories appearing *after* their contents. + # find: Print all files and directories and append '/' to directories. + # sort: Sort the output in *reverse*. Directories appear *after* their + # contents. + # sed: Remove the first character in each line (./dir -> /dir). find . -mindepth 1 -type d -exec printf '%s/\n' {} + -or -print | sort -r | sed ss.ss > "$pkg_dir/$1/$pkg_db/$1/manifest" ) |