aboutsummaryrefslogtreecommitdiff
path: root/kiss-new
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-29 15:25:29 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-29 15:25:29 +0000
commit9fb54ced675da60a2d7ce62d45130255a0b84c41 (patch)
treedc957022ffb5c86d2fce64b083c6262f46d6a462 /kiss-new
parent26407e6168f66540647942b361d45cc15d95548f (diff)
downloadcpt-9fb54ced675da60a2d7ce62d45130255a0b84c41.tar.gz
kiss-new: Create tarballs.
FossilOrigin-Name: 3ea4afdd17a56e3970e97ab54342caa4d9a1c8c1c3b9f6c697654f9347bf6572
Diffstat (limited to 'kiss-new')
-rwxr-xr-xkiss-new17
1 files changed, 17 insertions, 0 deletions
diff --git a/kiss-new b/kiss-new
index ae0e933..1c7c454 100755
--- a/kiss-new
+++ b/kiss-new
@@ -380,6 +380,23 @@ pkg_build() {
done
log "Generated all manifests."
+ log "Creating package tarballs..."
+
+ for pkg; do
+ # Find the package's repository files. This needs to keep
+ # happening as we can't store this data in any kind of data
+ # structure.
+ repo_dir=$(pkg_search "$pkg")
+
+ # Read the version information to name the package.
+ read -r version release < "$repo_dir/version"
+
+ # Create a tarball from the contents of the built package.
+ tar zpcf "$bin_dir/$pkg-$version-$release.tar.gz" -C "$pkg_dir/$pkg" . ||
+ die "[$pkg]: Failed to create tarball."
+ done
+
+ log "Created all packages."
}
pkg_checksums() {