cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 6e446059b1c0a237a87bf125221f2a726ce859e4
parent 63818fb4ada2704ffade9c0803b9e2e640409a0a
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sat, 21 Sep 2019 19:03:11 +0300

kiss: better comment

Diffstat:
Mkiss | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/kiss b/kiss @@ -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" )