ff0f5a6d04
Gotta love how quote silently discards metadata wooooo.
52 lines
1.6 KiB
Bash
Executable file
52 lines
1.6 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e -u
|
|
|
|
CURRENT_VERSION=$1
|
|
RELEASE_VERSION=$2
|
|
|
|
for f in bin/lein bin/lein-pkg bin/lein.bat project.clj leiningen-core/project.clj; do
|
|
sed -i s/$CURRENT_VERSION/$RELEASE_VERSION/ $f
|
|
done
|
|
|
|
rm -rf target classes leiningen-core/target leiningen-core/classes
|
|
rm -rf $HOME/.lein/self-installs/leiningen-$RELEASE_VERSION-standalone.jar
|
|
|
|
cd leiningen-core
|
|
sed -i s/\;\;:aot/:aot/ project.clj
|
|
lein1 clean, install
|
|
sed -i s/:aot/\;\;:aot/ project.clj
|
|
cd ..
|
|
|
|
bin/lein with-profile release uberjar
|
|
cp target/leiningen-$RELEASE_VERSION-standalone.jar $HOME/.lein/self-installs
|
|
|
|
cp bin/lein /tmp/lein-$RELEASE_VERSION
|
|
cd /tmp
|
|
|
|
if [ ! -r test-project ]; then
|
|
./lein-$RELEASE_VERSION new test-project
|
|
fi
|
|
|
|
cd test-project
|
|
|
|
time ../lein-$RELEASE_VERSION run -m clojure.main/main -e nil
|
|
time ../lein-$RELEASE_VERSION run -m clojure.main/main -e nil
|
|
time ../lein-$RELEASE_VERSION run -m clojure.main/main -e nil
|
|
|
|
echo "If these are under 3 seconds then you should be set to upload"
|
|
echo "target/leiningen-$RELEASE_VERSION-standalone.jar to S3."
|
|
echo "s3c me put -P target/leiningen-2.0.0-$RELEASE_VERSION-standalone.jar s3://leiningen/downloads/"
|
|
echo "Also deploy this release of leiningen-core to Clojars."
|
|
|
|
# Still manual for now:
|
|
# git commit -a -m "Release $RELEASE_VERSION"
|
|
# git tag -s $RELEASE_VERSION -m "Release $RELEASE_VERSION"
|
|
# cd leiningen-core; lein do clean, deploy clojars, marg
|
|
# deploy leiningen itself
|
|
# scp docs/uberdoc.html leiningen.org:leiningen.org/reference.html
|
|
# git push && git push --tags
|
|
# git checkout preview && git merge master && git push
|
|
# Drop version back to SNAPSHOT
|
|
|
|
# TODO: update windows install instructions on leiningen.org for 2.1
|