aboutsummaryrefslogtreecommitdiff
path: root/kiss-new
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-29 15:20:53 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-29 15:20:53 +0000
commit26407e6168f66540647942b361d45cc15d95548f (patch)
tree1a2f2dab2e5cef3e2b59a05b228c3ff989c53b3e /kiss-new
parentdba11ac3f2902e9594dfecb042f0760ad0995e1c (diff)
downloadcpt-26407e6168f66540647942b361d45cc15d95548f.tar.gz
kiss-new: Added manifests.
FossilOrigin-Name: 49da482112c00c1d5f6135a9c3670fcd7ac188bcb59b9ba1500d26d8be70b9d8
Diffstat (limited to 'kiss-new')
-rwxr-xr-xkiss-new15
1 files changed, 14 insertions, 1 deletions
diff --git a/kiss-new b/kiss-new
index c9befe5..ae0e933 100755
--- a/kiss-new
+++ b/kiss-new
@@ -329,7 +329,7 @@ pkg_build() {
# Copy the repository files to the package directory.
# This acts as the database entry.
- cp -Rf "$repo_dir" "$pkg_dir/$pkg/var/db/$kiss"
+ cp -Rf "$repo_dir" "$pkg_dir/$pkg/var/db/$kiss/"
log "[$pkg]: Sucessfully built package."
@@ -367,6 +367,19 @@ pkg_build() {
done
log "Stripped all binaries and libraries."
+ log "Generating package manifests..."
+
+ for pkg; do
+ # This runs in a subshell so we can avoid a 'cd -' or 'cd $OLDPWD'.
+ (
+ cd "$pkg_dir/$pkg"
+ find . -type d -exec printf '%s/\n' {} + -or -print
+ ) | sort -r | sed -e ss.ss > "$pkg_dir/$pkg/var/db/$kiss/$pkg/manifest"
+
+ log "[$pkg]: Generated manifest."
+ done
+
+ log "Generated all manifests."
}
pkg_checksums() {