forked from clojure/clojure
-
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.
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
- Loading branch information
1 parent
d6bc47a
commit 2b133f8
Showing
2 changed files
with
77 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
if [ -z $3 ]; then | ||
echo 'Usage: | ||
(checkout onto correct branch) | ||
(edit changes.txt) | ||
(optional: set CLOJURE_DEPLOY_URL for nonstandard location) | ||
release.sh <major> <minor> <incremental> (qualifier)' | ||
exit 0 | ||
fi | ||
|
||
MAJOR_VERSION=$1 | ||
MINOR_VERSION=$2 | ||
INCREMENTAL_VERSION=$3 | ||
QUALIFIER=$4 | ||
|
||
echo "clojure.version.major=$MAJOR_VERSION | ||
clojure.version.minor=$MINOR_VERSION | ||
clojure.version.incremental=$INCREMENTAL_VERSION | ||
clojure.version.qualifier=$QUALIFIER | ||
clojure.version.interim=false" >src/clj/clojure/version.properties | ||
|
||
if [ -z $QUALIFIER ]; then | ||
VERSION="$MAJOR_VERSION.$MINOR_VERSION.$INCREMENTAL_VERSION" | ||
else | ||
VERSION="$MAJOR_VERSION.$MINOR_VERSION.$INCREMENTAL_VERSION-$QUALIFIER" | ||
fi | ||
|
||
git commit -a -m "[Automated release] Clojure $VERSION" | ||
git tag -a -m "$VERSION" $VERSION | ||
|
||
if [ -z $CLOJURE_DEPLOY_URL ]; then | ||
CLOJURE_DEPLOY_URL=scp://build.clojure.org/srv/www/releases | ||
fi | ||
ant deploy -Ddeployment.url=$CLOJURE_DEPLOY_URL | ||
|
||
echo "Build is complete. git push if you are satisfied with the result." |