forked from technomancy/leiningen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f32ea06
commit aeaca0c
Showing
7 changed files
with
25 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,24 +2,26 @@ | |
|
||
set -e -u | ||
|
||
CURRENT_VERSION=$1 | ||
RELEASE_VERSION=$2 | ||
RELEASE_VERSION=$1 | ||
CURRENT_VERSION="$RELEASE_VERSION-SNAPSHOT" | ||
|
||
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 target classes leiningen-core/target leiningen-core/classes leiningen-core/lib | ||
rm -rf $HOME/.lein/self-installs/leiningen-$RELEASE_VERSION-standalone.jar | ||
|
||
LEIN_ROOT=$PWD | ||
|
||
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/release+uberjar/leiningen-$RELEASE_VERSION-standalone.jar $HOME/.lein/self-installs | ||
bin/lein uberjar | ||
cp target/leiningen-$RELEASE_VERSION-standalone.jar $HOME/.lein/self-installs | ||
|
||
cp bin/lein /tmp/lein-$RELEASE_VERSION | ||
cd /tmp | ||
|
@@ -36,18 +38,16 @@ 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/release+uberjar/leiningen-$RELEASE_VERSION-standalone.jar s3://leiningen/downloads/" | ||
echo "Also deploy this release of leiningen-core to Clojars." | ||
echo "s3c me put -P target/leiningen-$RELEASE_VERSION-standalone.jar s3://leiningen/downloads/" | ||
echo "Also deploy this release to Clojars." | ||
|
||
cd - | ||
cd $LEIN_ROOT | ||
|
||
git commit -a -m "Release $RELEASE_VERSION" | ||
git tag -s $RELEASE_VERSION -m "Release $RELEASE_VERSION" | ||
|
||
# Still manual for now: | ||
# cd leiningen-core; lein do clean, deploy clojars, marg | ||
# deploy leiningen itself | ||
# scp docs/uberdoc.html [email protected]:leiningen.org/reference.html | ||
# git push && git push --tags | ||
# git checkout stable && git merge master && git push | ||
# Drop version back to SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters