Create deployables
[clnl] / bin / release.sh
1 #!/bin/bash
2
3 # The release process:
4 #  * Change version number in clnl.asd
5 #  * Run this script to create the source tarball
6 #  * Run bin/generatedocs.sh to update wiki
7 #  * Create release on github (that should create the tag)
8 #  * Upload the tar.gz as an extra file
9 #  * Create linux release using bin/buildlinuxexech.sh on a linux machine
10 #  * Create osx release using bin/buildosxrelease.sh on a mac and upload
11 #  * Create windows release using bin/buildwindowsexec.sh on a windows box and upload
12 #  * Set the tag in wiki milestones, update Running wiki page to point to new release
13
14 version=$(sbcl --noinform --disable-ldb --lose-on-corruption --end-runtime-options --eval '(format t "~A" (asdf:component-version (asdf:find-system :clnl)))' --eval "(quit)")
15
16 echo -n "Building version $version, hit enter to continue"
17 read
18
19 mkdir clnl_$version
20 cp -ap src/main/* clnl_$version/
21 tar zcf clnl_${version}.tar.gz clnl_$version/
22 rm -rf clnl_$version
23
24 echo "All done, it's in clnl_${version}.tar.gz, you should tag it and push it up to github"
25 echo "You should also build on OSX, Windows, and Linux using the various release scripts and push those up too."