Browse files

Update README to mention Leiningen 1.7.1 needed as "lein1", and simpl…

…ify lein-init.sh so it doesn't need all of those lein-files/* files any more. Add most recent Clojure releases to env.sh and lein-init.sh
  • Loading branch information...
1 parent f5a0bbc commit faa10ab6a43cf3e9ea24d357938f97554d223102 @jafingerhut committed Feb 8, 2013
Showing with 105 additions and 205 deletions.
  1. +22 −18 README
  2. +19 −13 env.sh
  3. +0 −3 lein-files/project.clj-for-clojure-1.2.0
  4. +0 −3 lein-files/project.clj-for-clojure-1.2.1
  5. +0 −3 lein-files/project.clj-for-clojure-1.3.0
  6. +0 −3 lein-files/project.clj-for-clojure-1.3.0-alpha1
  7. +0 −3 lein-files/project.clj-for-clojure-1.3.0-alpha3
  8. +0 −3 lein-files/project.clj-for-clojure-1.3.0-alpha4
  9. +0 −3 lein-files/project.clj-for-clojure-1.3.0-alpha5
  10. +0 −3 lein-files/project.clj-for-clojure-1.3.0-alpha6
  11. +0 −3 lein-files/project.clj-for-clojure-1.3.0-alpha7
  12. +0 −3 lein-files/project.clj-for-clojure-1.3.0-alpha8
  13. +0 −3 lein-files/project.clj-for-clojure-1.3.0-beta1
  14. +0 −3 lein-files/project.clj-for-clojure-1.3.0-beta2
  15. +0 −3 lein-files/project.clj-for-clojure-1.3.0-beta3
  16. +0 −3 lein-files/project.clj-for-clojure-1.4.0
  17. +0 −3 lein-files/project.clj-for-clojure-1.4.0-alpha1
  18. +0 −3 lein-files/project.clj-for-clojure-1.4.0-alpha2
  19. +0 −3 lein-files/project.clj-for-clojure-1.4.0-alpha3
  20. +0 −3 lein-files/project.clj-for-clojure-1.4.0-alpha4
  21. +0 −3 lein-files/project.clj-for-clojure-1.4.0-beta1
  22. +0 −3 lein-files/project.clj-for-clojure-1.4.0-beta2
  23. +0 −3 lein-files/project.clj-for-clojure-1.4.0-beta3
  24. +0 −3 lein-files/project.clj-for-clojure-1.4.0-beta4
  25. +0 −3 lein-files/project.clj-for-clojure-1.4.0-beta5
  26. +0 −3 lein-files/project.clj-for-clojure-1.4.0-beta6
  27. +0 −3 lein-files/project.clj-for-clojure-1.4.0-beta7
  28. +0 −3 lein-files/project.clj-for-clojure-1.5.0-RC1
  29. +0 −3 lein-files/project.clj-for-clojure-1.5.0-RC2
  30. +0 −3 lein-files/project.clj-for-clojure-1.5.0-RC3
  31. +0 −3 lein-files/project.clj-for-clojure-1.5.0-RC4
  32. +0 −3 lein-files/project.clj-for-clojure-1.5.0-alpha1
  33. +0 −3 lein-files/project.clj-for-clojure-1.5.0-alpha2
  34. +0 −3 lein-files/project.clj-for-clojure-1.5.0-alpha3
  35. +0 −3 lein-files/project.clj-for-clojure-1.5.0-alpha4
  36. +0 −3 lein-files/project.clj-for-clojure-1.5.0-alpha5
  37. +0 −3 lein-files/project.clj-for-clojure-1.5.0-alpha6
  38. +0 −3 lein-files/project.clj-for-clojure-1.5.0-alpha7
  39. +0 −3 lein-files/project.clj-for-clojure-1.5.0-beta1
  40. +0 −3 lein-files/project.clj-for-clojure-1.5.0-beta2
  41. +64 −60 lein-init.sh
View
40 README
@@ -3,16 +3,19 @@ these do if you are curious):
(1) Check below for install instructions specific to your OS.
- Either: (2a) Install Leiningen and run lein-init.sh, which creates
- directories 'lein' and '.m2' in your home directory (takes about 2
- mins on my system after Leiningen is installed), or (2b) edit
+ Either: (2a) Install Leiningen (see next paragraph), or (2b) edit
env.sh to specify the location of your Clojure JAR files. Look
for the CLOJURE_CLASSPATH variable settings.
- (2a) Leiningen installation instructions:
+ (2a) Leiningen version 1.7.1 installation instructions (Leiningen
+ 1.7.1 is the "old version" now, but it installs JAR files in a
+ place expected by some of this code, and the current Leiningen
+ version 2 puts them somewhere else):
http://github.com/technomancy/leiningen
- Then use Leiningen to install multiple Clojure JAR files in
- $HOME/lein directory.
+
+ Save Leiningen 1.7.1 as 'lein1' somewhere in your command path.
+ Then use the following script to install multiple Clojure JAR
+ files in your $HOME/lein directory.
% ./lein-init.sh
@@ -25,18 +28,18 @@ these do if you are curious):
Time required on some of my systems: 6-7 mins, or 18 mins on a
Windows + Cygwin running in a VM.
- (4) Run Clojure 1.2 versions of all of the benchmark programs:
+ (4) Run Clojure 1.3 versions of all of the benchmark programs:
- % ./run-all.sh clj-1.2
+ % ./run-all.sh clj-1.3
Time required on some of my systems: 25 - 35 mins (about half the
time was spent running the long fannkuch benchmark, and about 1/4
on the long knucleotide benchmmark.)
- Another example: Run Java, Clojure 1.2, Clojure 1.3 alpha1, and
- Clojure 1.3 alpha3 versions of all of the benchmark programs.
+ Another example: Run Java, Clojure 1.3, Clojure 1.4 alpha1, and
+ Clojure 1.4 alpha3 versions of all of the benchmark programs.
- % ./run-all.sh long java clj-1.2 clj-1.3-alpha1 clj-1.3-alpha3
+ % ./run-all.sh long java clj-1.3 clj-1.4-alpha1 clj-1.4-alpha3
(5) If you want all results recorded to an XML file, look in
env.sh for MP_COMMON_ARGS and the comments before it on how to
@@ -49,18 +52,19 @@ these do if you are curious):
Systems on which this has been tested:
Mac OS X 10.5.8
-Mac OS X 10.6.6, both with and without MacPorts installed
-Ubuntu 10.4 LTS, 32-bit and 64-bit
-Windows XP SP3 + Cygwin 1.7.7
+Mac OS X 10.6.8, both with and without MacPorts installed
+Mac OS X 10.7
+Ubuntu 10.4 LTS, 32-bit and 64-bit (also Ubuntu 11.10 and 12.04)
+Windows XP SP3/Vista/7 + Cygwin
You need a Java Development Kit installed. A Java Virtual Machine
with no Java compiler (javac) is not enough. You need a compiler for
Java source files that are used in the "./init.sh output" step above
to create the input files. You also need a JVM to run Leiningen, if
you use that.
-Tested with recent Java 1.6.0.X HotSpot JVMs from Sun, and JRockit
-from Oracle on Windows XP.
+Tested with recent Java 1.6.0.X and 1.7.0.X HotSpot JVMs from Sun, and
+JRockit from Oracle on Windows XP and Vista.
----------------------------------------------------------------------
Install instruction specific to Mac OS X
@@ -117,7 +121,7 @@ in 10.5. I've filed a bug on Apple's developer web site in January
2011, but this behavior change may be intentional for all I know.
----------------------------------------------------------------------
-Install instructions specific to Ubuntu Linux 10.4
+Install instructions specific to Ubuntu Linux
----------------------------------------------------------------------
On Ubuntu 11.10 (and perhaps others), the package libxml-libxml-perl
@@ -238,7 +242,7 @@ thread-ring - yes -
I have hacked up some shell scripts to automate the compilation and
running of some of these programs. They have been tested on Mac OS X
-10.5.8 and 10.6.4 with recent versions of the Glasgow Haskell Compiler
+10.5.8 and 10.6.8 with recent versions of the Glasgow Haskell Compiler
ghc, SBCL Common Lisp, Perl, several versions of Sun's Java VM (for
Windows XP, Linux, and Mac), Oracle's JRockit JVM for Windows, and
Clojure 1.2.0 and 1.3.0 alpha1 (and earlier 1.0.0 or shortly before
View
32 env.sh
@@ -38,13 +38,13 @@ fi
# See also below the definition of ALL_BENCHMARK_CLOJURE_VERSIONS,
# which is a subset of ALL_CLOJURE_VERSIONS
-ALL_CLOJURE_VERSIONS="clj-1.2 clj-1.2.1 clj-1.3-alpha5 clj-1.3-alpha6 clj-1.3-alpha7 clj-1.3-alpha8 clj-1.3-beta1 clj-1.3-beta2 clj-1.3-beta3 clj-1.3 clj-1.4-alpha1 clj-1.4-alpha2 clj-1.4-alpha3 clj-1.4-alpha4 clj-1.4-beta1 clj-1.4-beta2 clj-1.4-beta3 clj-1.4-beta4 clj-1.4-beta5 clj-1.4-beta6 clj-1.4-beta7 clj-1.4 clj-1.5-alpha1 clj-1.5-alpha2 clj-1.5-alpha3 clj-1.5-alpha4 clj-1.5-alpha5 clj-1.5-alpha6 clj-1.5-alpha7 clj-1.5-beta1 clj-1.5-beta2 clj-1.5-RC1 clj-1.5-RC2 clj-1.5-RC3 clj-1.5-RC4"
+ALL_CLOJURE_VERSIONS="clj-1.2 clj-1.2.1 clj-1.3-alpha5 clj-1.3-alpha6 clj-1.3-alpha7 clj-1.3-alpha8 clj-1.3-beta1 clj-1.3-beta2 clj-1.3-beta3 clj-1.3 clj-1.4-alpha1 clj-1.4-alpha2 clj-1.4-alpha3 clj-1.4-alpha4 clj-1.4-beta1 clj-1.4-beta2 clj-1.4-beta3 clj-1.4-beta4 clj-1.4-beta5 clj-1.4-beta6 clj-1.4-beta7 clj-1.4 clj-1.5-alpha1 clj-1.5-alpha2 clj-1.5-alpha3 clj-1.5-alpha4 clj-1.5-alpha5 clj-1.5-alpha6 clj-1.5-alpha7 clj-1.5-beta1 clj-1.5-beta2 clj-1.5-RC1 clj-1.5-RC2 clj-1.5-RC3 clj-1.5-RC4 clj-1.5-RC5 clj-1.5-RC6 clj-1.5-beta7 clj-1.5-beta8 clj-1.5-beta9 clj-1.5-beta10 clj-1.5-beta11"
-ALL_MAJOR_CLOJURE_VERSIONS="clj-1.2.1 clj-1.3 clj-1.4 clj-1.5-RC4"
+ALL_MAJOR_CLOJURE_VERSIONS="clj-1.2.1 clj-1.3 clj-1.4 clj-1.5-beta11"
show_known_clojure_versions()
{
- 1>&2 echo -n "1.2 1.2.1 1.3-alpha[5-8] 1.3-beta[1-3] 1.3 1.4-alpha[1-5] 1.4-beta[1-7] 1.4.0 1.5-alpha[1-7] clj-1.5-beta[1-2] clj-1.5-RC[1-4]"
+ 1>&2 echo -n "1.2 1.2.1 1.3-alpha[5-8] 1.3-beta[1-3] 1.3 1.4-alpha[1-5] 1.4-beta[1-7] 1.4.0 1.5-alpha[1-7] clj-1.5-beta[1-2] clj-1.5-RC[1-6] clj-1.5-beta[7-11]"
}
internal_check_clojure_version_spec()
@@ -99,17 +99,23 @@ internal_check_clojure_version_spec()
CLJ_VERSION_STR="${spec}"
;;
- 1.5-beta[1-2])
+ 1.5-beta[1-27-9])
CLJ_VERSION_STR="1.5.0${spec/1.5/}"
;;
- 1.5.0-beta[1-2])
+ 1.5-beta1[0-1])
+ CLJ_VERSION_STR="1.5.0${spec/1.5/}"
+ ;;
+ 1.5.0-beta[1-27-9])
+ CLJ_VERSION_STR="${spec}"
+ ;;
+ 1.5.0-beta1[0-1])
CLJ_VERSION_STR="${spec}"
;;
- 1.5-RC[1-3])
+ 1.5-RC[1-6])
CLJ_VERSION_STR="1.5.0${spec/1.5/}"
;;
- 1.5.0-RC[1-3])
+ 1.5.0-RC[1-6])
CLJ_VERSION_STR="${spec}"
;;
@@ -214,12 +220,12 @@ all_clojure_versions_except()
# except the following versions have been removed so that benchmarking
# runs go faster:
-# 1.5-RC3 is only 1 commit older than 1.5-RC4. Keep 1.5-RC4.
-
-# 1.5-RC2 is identical to 1.5-RC1, except for the changes.md file.
+# 1.5-beta10 is only 2 commits older than 1.5-beta11. Keep 1.5-beta11
+# in preference to 1.5-beta10.
-# 1.5-RC1 is only 2 commit older than 1.5-RC4. Keep 1.5-RC4 with its
-# 2 extra commits, in preference to 1.5-RC1.
+# 1.5-RC1, RC2, and RC3 are only 3, 3, and 1 commits older
+# (respectively) than 1.5-RC4. Keep 1.5-RC4 in preference to any of
+# them.
# 1.5-alpha7 is only 1 commit newer than 1.5-alpha6, and it is the
# addition of 5 new macros that won't be used in any benchmarks
@@ -238,7 +244,7 @@ all_clojure_versions_except()
# 1.4-beta3 is only 1 commit newer than 1.4-beta2, and it is the
# option to remove metadata during compilation.
-ALL_BENCHMARK_CLOJURE_VERSIONS="`all_clojure_versions_except 1.4-beta3 1.4-beta5 1.4-beta7 1.5-alpha6 1.5-alpha7 1.5-RC1 1.5-RC2 1.5-RC3`"
+ALL_BENCHMARK_CLOJURE_VERSIONS="`all_clojure_versions_except 1.4-beta3 1.4-beta5 1.4-beta7 1.5-alpha6 1.5-alpha7 1.5-RC1 1.5-RC2 1.5-RC3 1.5-RC5 1.5-RC6 1.5-beta7 1.5-beta8 1.5-beta9 1.5-beta10`"
all_benchmark_clojure_versions_except()
{
View
3 lein-files/project.clj-for-clojure-1.2.0
@@ -1,3 +0,0 @@
-(defproject clojure-1.2.0 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.2.0"]])
View
3 lein-files/project.clj-for-clojure-1.2.1
@@ -1,3 +0,0 @@
-(defproject clojure-1.2.1 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.2.1"]])
View
3 lein-files/project.clj-for-clojure-1.3.0
@@ -1,3 +0,0 @@
-(defproject clojure-1.3.0 "1.0.0-SNAPSHOT"
- :description "FIXME: write description"
- :dependencies [[org.clojure/clojure "1.3.0"]])
View
3 lein-files/project.clj-for-clojure-1.3.0-alpha1
@@ -1,3 +0,0 @@
-(defproject clojure-1.3.0-alpha1 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.3.0-alpha1"]])
View
3 lein-files/project.clj-for-clojure-1.3.0-alpha3
@@ -1,3 +0,0 @@
-(defproject clojure-1.3.0-alpha3 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.3.0-alpha3"]])
View
3 lein-files/project.clj-for-clojure-1.3.0-alpha4
@@ -1,3 +0,0 @@
-(defproject clojure-1.3.0-alpha4 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.3.0-alpha4"]])
View
3 lein-files/project.clj-for-clojure-1.3.0-alpha5
@@ -1,3 +0,0 @@
-(defproject clojure-1.3.0-alpha5 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.3.0-alpha5"]])
View
3 lein-files/project.clj-for-clojure-1.3.0-alpha6
@@ -1,3 +0,0 @@
-(defproject clojure-1.3.0-alpha6 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.3.0-alpha6"]])
View
3 lein-files/project.clj-for-clojure-1.3.0-alpha7
@@ -1,3 +0,0 @@
-(defproject clojure-1.3.0-alpha7 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.3.0-alpha7"]])
View
3 lein-files/project.clj-for-clojure-1.3.0-alpha8
@@ -1,3 +0,0 @@
-(defproject clojure-1.3.0-alpha8 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.3.0-alpha8"]])
View
3 lein-files/project.clj-for-clojure-1.3.0-beta1
@@ -1,3 +0,0 @@
-(defproject clojure-1.3.0-beta1 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.3.0-beta1"]])
View
3 lein-files/project.clj-for-clojure-1.3.0-beta2
@@ -1,3 +0,0 @@
-(defproject clojure-1.3.0-beta2 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.3.0-beta2"]])
View
3 lein-files/project.clj-for-clojure-1.3.0-beta3
@@ -1,3 +0,0 @@
-(defproject clojure-1.3.0-beta3 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.3.0-beta3"]])
View
3 lein-files/project.clj-for-clojure-1.4.0
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0 "1.0.0-SNAPSHOT"
- :description "FIXME: write description"
- :dependencies [[org.clojure/clojure "1.4.0"]])
View
3 lein-files/project.clj-for-clojure-1.4.0-alpha1
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0-alpha1 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.4.0-alpha1"]])
View
3 lein-files/project.clj-for-clojure-1.4.0-alpha2
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0-alpha2 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.4.0-alpha2"]])
View
3 lein-files/project.clj-for-clojure-1.4.0-alpha3
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0-alpha3 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.4.0-alpha3"]])
View
3 lein-files/project.clj-for-clojure-1.4.0-alpha4
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0-alpha4 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.4.0-alpha4"]])
View
3 lein-files/project.clj-for-clojure-1.4.0-beta1
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0-beta1 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.4.0-beta1"]])
View
3 lein-files/project.clj-for-clojure-1.4.0-beta2
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0-beta2 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.4.0-beta2"]])
View
3 lein-files/project.clj-for-clojure-1.4.0-beta3
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0-beta3 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.4.0-beta3"]])
View
3 lein-files/project.clj-for-clojure-1.4.0-beta4
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0-beta4 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.4.0-beta4"]])
View
3 lein-files/project.clj-for-clojure-1.4.0-beta5
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0-beta5 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.4.0-beta5"]])
View
3 lein-files/project.clj-for-clojure-1.4.0-beta6
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0-beta6 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.4.0-beta6"]])
View
3 lein-files/project.clj-for-clojure-1.4.0-beta7
@@ -1,3 +0,0 @@
-(defproject clojure-1.4.0-beta7 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.4.0-beta7"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-RC1
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-RC1 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-RC1"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-RC2
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-RC2 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-RC2"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-RC3
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-RC3 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-RC3"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-RC4
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-RC4 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-RC4"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-alpha1
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-alpha1 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-alpha1"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-alpha2
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-alpha2 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-alpha2"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-alpha3
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-alpha3 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-alpha3"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-alpha4
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-alpha4 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-alpha4"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-alpha5
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-alpha5 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-alpha5"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-alpha6
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-alpha6 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-alpha6"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-alpha7
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-alpha7 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-alpha7"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-beta1
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-beta1 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-beta1"]])
View
3 lein-files/project.clj-for-clojure-1.5.0-beta2
@@ -1,3 +0,0 @@
-(defproject clojure-1.5.0-beta2 "1.0.0-SNAPSHOT"
- :description "FIXME: write"
- :dependencies [[org.clojure/clojure "1.5.0-beta2"]])
View
124 lein-init.sh
@@ -4,120 +4,124 @@
# files in the same directory, relative to the home directory, on
# multiple operating systems.
+make_project_clj_file()
+{
+ local VERSION="$1"
+ local FNAME="$2"
+
+ echo "(defproject clojure-${VERSION} \"1.0.0-SNAPSHOT\"" > ${FNAME}
+ echo " :description \"FIXME: write\"" >> ${FNAME}
+ echo " :dependencies [[org.clojure/clojure \"${VERSION}\"]])" >> ${FNAME}
+}
+
LEIN_FILES="`dirname $0`/lein-files"
#echo $LEIN_FILES
#exit 0
-mkdir -p "${HOME}/lein/lein-files"
-cp -pr "${LEIN_FILES}"/* "${HOME}/lein/lein-files/"
-
+mkdir -p "${HOME}/lein"
cd "${HOME}/lein"
for clj_1_2_point_release in 0 1
do
- lein new clojure-1.2.${clj_1_2_point_release}
- cd clojure-1.2.${clj_1_2_point_release}
- cp -p "../lein-files/project.clj-for-clojure-1.2.${clj_1_2_point_release}" project.clj
- lein deps
+ v="1.2.${clj_1_2_point_release}"
+ lein1 new clojure-${v}
+ cd clojure-${v}
+ make_project_clj_file ${v} project.clj
+ lein1 deps
cd ..
done
-lein new swank-clj-1.2.0
-cd swank-clj-1.2.0
-cp -p "../lein-files/project.clj-for-clojure-1.2.0-plus-contrib-plus-swank" project.clj
-lein deps
-cd ..
-
# It appears that 1.3.0 alpha version 1, 3, and 4 are no longer
# available from Maven repo.
#for alpha in 1 3 4 5 6 7 8
for alpha in 5 6 7 8
do
- lein new clojure-1.3.0-alpha${alpha}
- cd clojure-1.3.0-alpha${alpha}
- cp -p "../lein-files/project.clj-for-clojure-1.3.0-alpha${alpha}" project.clj
- lein deps
+ v="1.3.0-alpha${alpha}"
+ lein1 new clojure-${v}
+ cd clojure-${v}
+ make_project_clj_file ${v} project.clj
+ lein1 deps
cd ..
done
-# This one doesn't quite work yet, but none of the Clojure programs
-# need anything from clojure-contrib yet.
-
-#lein new contrib-1.3.0-alpha
-#cd contrib-1.3.0-alpha
-#cp -p "${LEIN_FILES}/project.clj-for-clojure-1.3.0-plus-contrib" project.clj
-#lein deps
-#cd ..
-
for beta in 1 2 3
do
- lein new clojure-1.3.0-beta${beta}
- cd clojure-1.3.0-beta${beta}
- cp -p "../lein-files/project.clj-for-clojure-1.3.0-beta${beta}" project.clj
- lein deps
+ v="1.3.0-beta${beta}"
+ lein1 new clojure-${v}
+ cd clojure-${v}
+ make_project_clj_file ${v} project.clj
+ lein1 deps
cd ..
done
for clj_1_3_point_release in 0
do
- lein new clojure-1.3.${clj_1_3_point_release}
- cd clojure-1.3.${clj_1_3_point_release}
- cp -p "../lein-files/project.clj-for-clojure-1.3.${clj_1_3_point_release}" project.clj
- lein deps
+ v="1.3.${clj_1_3_point_release}"
+ lein1 new clojure-${v}
+ cd clojure-${v}
+ make_project_clj_file ${v} project.clj
+ lein1 deps
cd ..
done
for alpha in 1 2 3 4
do
- lein new clojure-1.4.0-alpha${alpha}
- cd clojure-1.4.0-alpha${alpha}
- cp -p "../lein-files/project.clj-for-clojure-1.4.0-alpha${alpha}" project.clj
- lein deps
+ v="1.4.0-alpha${alpha}"
+ lein1 new clojure-${v}
+ cd clojure-${v}
+ make_project_clj_file ${v} project.clj
+ lein1 deps
cd ..
done
for beta in 1 2 3 4 5 6 7
do
- lein new clojure-1.4.0-beta${beta}
- cd clojure-1.4.0-beta${beta}
- cp -p "../lein-files/project.clj-for-clojure-1.4.0-beta${beta}" project.clj
- lein deps
+ v="1.4.0-beta${beta}"
+ lein1 new clojure-${v}
+ cd clojure-${v}
+ make_project_clj_file ${v} project.clj
+ lein1 deps
cd ..
done
for clj_1_4_point_release in 0
do
- lein new clojure-1.4.${clj_1_4_point_release}
- cd clojure-1.4.${clj_1_4_point_release}
- cp -p "../lein-files/project.clj-for-clojure-1.4.${clj_1_4_point_release}" project.clj
- lein deps
+ v="1.4.${clj_1_4_point_release}"
+ lein1 new clojure-${v}
+ cd clojure-${v}
+ make_project_clj_file ${v} project.clj
+ lein1 deps
cd ..
done
for alpha in 1 2 3 4 5 6 7
do
- lein new clojure-1.5.0-alpha${alpha}
- cd clojure-1.5.0-alpha${alpha}
- cp -p "../lein-files/project.clj-for-clojure-1.5.0-alpha${alpha}" project.clj
- lein deps
+ v="1.5.0-alpha${alpha}"
+ lein1 new clojure-${v}
+ cd clojure-${v}
+ make_project_clj_file ${v} project.clj
+ lein1 deps
cd ..
done
-for beta in 1 2
+for beta in 1 2 7 8 9 10 11
do
- lein new clojure-1.5.0-beta${beta}
- cd clojure-1.5.0-beta${beta}
- cp -p "../lein-files/project.clj-for-clojure-1.5.0-beta${beta}" project.clj
- lein deps
+ v="1.5.0-beta${beta}"
+ lein1 new clojure-${v}
+ cd clojure-${v}
+ make_project_clj_file ${v} project.clj
+ lein1 deps
cd ..
done
-for RC in 1 2 3 4
+for RC in 1 2 3 4 5 6
do
- lein new clojure-1.5.0-rc${RC}
- cd clojure-1.5.0-rc${RC}
- cp -p "../lein-files/project.clj-for-clojure-1.5.0-RC${RC}" project.clj
- lein deps
+ lc_v="1.5.0-rc${RC}"
+ v="1.5.0-RC${RC}"
+ lein1 new clojure-${lc_v}
+ cd clojure-${lc_v}
+ make_project_clj_file ${v} project.clj
+ lein1 deps
cd ..
done

0 comments on commit faa10ab

Please sign in to comment.