aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjantuomi <jans.tuomi@gmail.com>2016-08-02 14:03:05 +0300
committerjantuomi <jans.tuomi@gmail.com>2016-08-02 14:03:05 +0300
commita84e59f7763c73f55496a77b775cc858a5382bb0 (patch)
tree353ef5fdf4b6455fcdd2c8acb351f7a4b962bf6c
parentf8e8d118bfdac6caeb76f0c7a120c20247c3c13c (diff)
Create .tar.gz instead of a .tar ball
-rwxr-xr-xbuild.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 5c017b8..898baae 100755
--- a/build.sh
+++ b/build.sh
@@ -43,11 +43,13 @@ echo 'java -jar tunkki.jar $@' >> "bin/tunkki"
chmod +x "bin/tunkki"
+# Create tarball
+TARBALL="$RELEASE.tar.gz"
cd ..
echo "Creating tarball..."
-tar cvf "$RELEASE.tar" "$RELEASE"
+tar zcvf "$TARBALL" "$RELEASE"
echo "Done."
echo "Installation directory: $TARGET/$RELEASE"
-echo "Installation package: $TARGET/$RELEASE.tar"
+echo "Installation package: $TARGET/$TARBALL"
cd ..