clojure,clojure-contribのバージョンアップ(1.1.0のビルド方法)
今更なのですが、http://d.hatena.ne.jp/e-o-n/20091024 に書いた手順でバージョン1.0をビルド後に、バージョン1.1.0のjarを作成する手順のメモ。
~/opt以下にclojureとclojure-contribをgit cloneしている。
まずはclojureから。
~% cd opt/clojure ~/opt/clojure% git branch * (no branch) master ~/opt/clojure% git checkout master Previous HEAD position was f85444e... tag for 1.0 Switched to branch "master" ~/opt/clojure% git pull Already up-to-date. ※いつの間にかgit pullしていた... ~/opt/clojure% git tag 1.0 1.1.0 ~/opt/clojure% git checkout 1.1.0 Note: moving to "1.1.0" which isn't a local branch If you want to create a new branch from this checkout, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b <new_branch_name> HEAD is now at 5293929... remove qualifier for 1.1.0 release ~/opt/clojure% ant Buildfile: build.xml ...略... clojure: [jar] Building jar: ~/opt/clojure/clojure-1.1.0.jar [copy] Copying 1 file to ~/opt/clojure ...略... BUILD SUCCESSFUL Total time: 21 seconds
次はclojure-contrib。
~/opt/clojure% cd ../clojure-contrib/ ~/opt/clojure-contrib% git branch * (no branch) master ~/opt/clojure-contrib% git checkout master Previous HEAD position was b985ecf... Set version to 1.0.0 in Ant build and POM Switched to branch "master" ~/opt/clojure-contrib% git pull remote: Counting objects: 106, done. remote: Compressing objects: 100% (70/70), done. ...略... ~/opt/clojure-contrib% git tag 1.0.0 1.0.0-RC1 1.0.0-RC2 1.1.0 1.1.0-RC1 1.1.0-RC2 1.1.0-RC3 ~/opt/clojure-contrib% git checkout 1.1.0 Note: moving to "1.1.0" which isn't a local branch If you want to create a new branch from this checkout, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b <new_branch_name> HEAD is now at d132c5f... Set version to 1.1.0 in Ant build and POM ~/opt/clojure-contrib% ant Buildfile: build.xml ...略... jar: [jar] Building jar: ~/opt/clojure-contrib/clojure-contrib.jar [jar] Building jar: ~/opt/clojure-contrib/clojure-contrib-slim.jar BUILD SUCCESSFUL Total time: 1 second
次の場所にclojureとclojure-contribのjarファイルが作成される。
~/opt/clojure/clojure-1.1.0.jar
~/opt/clojure-contrib/clojure-contrib.jar