2012-06-02 04:44:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e -u
|
|
|
|
|
|
|
|
CURRENT_VERSION=$1
|
|
|
|
RELEASE_VERSION=$2
|
|
|
|
|
|
|
|
for f in bin/lein 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 ..
|
|
|
|
|
2012-06-03 04:07:35 +00:00
|
|
|
bin/lein with-profile release uberjar
|
2012-06-02 04:44:09 +00:00
|
|
|
cp target/leiningen-$RELEASE_VERSION-standalone.jar $HOME/.lein/self-installs
|
|
|
|
|
|
|
|
cp bin/lein /tmp/lein-$RELEASE_VERSION
|
|
|
|
cd /tmp
|
|
|
|
|
2012-06-14 04:43:22 +00:00
|
|
|
if [ ! -r test-project ]; then
|
|
|
|
./lein-$RELEASE_VERSION new test-project
|
|
|
|
fi
|
2012-06-02 04:44:09 +00:00
|
|
|
|
2012-06-14 04:43:22 +00:00
|
|
|
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"
|
2012-06-02 04:44:09 +00:00
|
|
|
echo "target/leiningen-$RELEASE_VERSION-standalone.jar to GitHub."
|
|
|
|
echo "Also deploy this release of leiningen-core to Clojars."
|
|
|
|
|
|
|
|
# Still manual for now:
|
2012-06-27 23:44:55 +00:00
|
|
|
# cd leiningen-core; lein do clean, deploy clojars, marg
|
2012-06-02 04:44:09 +00:00
|
|
|
# scp docs/uberdoc.html leiningen.org:leiningen.org/reference.html
|
|
|
|
# git commit -a -m "Release $RELEASE_VERSION"
|
2012-08-25 00:26:00 +00:00
|
|
|
# git tag -s $RELEASE_VERSION -m "Release $RELEASE_VERSION"
|
2012-06-02 04:44:09 +00:00
|
|
|
# git push && git push --tags
|
|
|
|
# git checkout preview && git reset --hard $RELEASE_VERSION && git push
|
|
|
|
# Drop version back to SNAPSHOT
|
2012-07-17 21:17:50 +00:00
|
|
|
|
2012-08-25 23:49:21 +00:00
|
|
|
# (require 'tentacles.repos) (apply + (for [d (tentacles.repos/downloads "technomancy" "leiningen") :when (re-find #"[0-9]-standalone\.jar$" (:name d))] (:download_count d)))
|