Add release build script
authorFrank Duncan <frank@kank.net>
Sun, 19 Dec 2021 06:44:15 +0000 (00:44 -0600)
committerFrank Duncan <frank@kank.net>
Sun, 19 Dec 2021 06:44:15 +0000 (00:44 -0600)
bin/buildRelease.sh [new file with mode: 0755]

diff --git a/bin/buildRelease.sh b/bin/buildRelease.sh
new file mode 100755 (executable)
index 0000000..9324a9d
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+version=$(sbcl --noinform --disable-ldb --lose-on-corruption --end-runtime-options --eval '(format t "~A" (asdf:component-version (asdf:find-system :opera)))' --eval "(quit)")
+
+echo -n "Building version $version, hit enter to continue"
+read
+
+mkdir -p opera_$version/src/main
+cp -ap src/main/* opera_$version/src/main
+cp -ap opera.asd opera_$version/
+tar zcf opera_${version}.tar.gz opera_$version/
+rm -rf opera_$version
+
+echo "All done, it's in opera_${version}.tar.gz, you should tag it and push it up to github"