aboutsummaryrefslogtreecommitdiff
path: root/lib/actions/dist.bash
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-03-22 13:44:01 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-03-22 13:44:01 +0100
commit1548063b6ac54affecccc19872b1ffeed64f0887 (patch)
tree645d7ec3faeff40be96172b134023510334b5b6a /lib/actions/dist.bash
parente335ffb41f7d65f369a8e4170affcd8d68a40be2 (diff)
Work out (most?) issues reported by shellcheck
Diffstat (limited to 'lib/actions/dist.bash')
-rw-r--r--lib/actions/dist.bash9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/actions/dist.bash b/lib/actions/dist.bash
index 3b06b4f..5da5e49 100644
--- a/lib/actions/dist.bash
+++ b/lib/actions/dist.bash
@@ -11,7 +11,7 @@ action() {
info "Creating distribution contents at $WORKDIR"
- cd -- "$BASEDIR"
+ chgdir "$BASEDIR"
# Include files from this project
for file in $(git ls-files)
@@ -26,7 +26,7 @@ action() {
done
# Add a MANIFEST.txt
- cd -- "$WORKDIR"
+ chgdir "$WORKDIR"
find . > MANIFEST.txt
# Tar it all up into a distribution tarball
@@ -35,10 +35,13 @@ action() {
local tarball="$BASEDIR/dist/rakudo-star-$version.tar.gz"
mkdir -p -- "$(dirname "$tarball")"
- cd -- "$BASEDIR/tmp"
+ chgdir "$BASEDIR/tmp"
tar czf "$tarball" "rakudo-star-$version"
+ # TODO: Create checksums
+ # TODO: Create PGP signature
+
info "Distribution tarball available at $tarball"
}