Skip to content

Commit

Permalink
Add Clojure releases up through 1.6.0 to env.sh and lein-init.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jafingerhut committed Apr 5, 2014
1 parent 78e9c98 commit cbc3253
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 7 deletions.
27 changes: 21 additions & 6 deletions env.sh
Expand Up @@ -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 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 clj-1.5-beta12 clj-1.5-beta13 clj-1.5-RC14 clj-1.5-RC15 clj-1.5-RC16 clj-1.5 clj-1.5.1 clj-1.6-alpha1 clj-1.6-alpha2"
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 clj-1.5-beta12 clj-1.5-beta13 clj-1.5-RC14 clj-1.5-RC15 clj-1.5-RC16 clj-1.5 clj-1.5.1 clj-1.6-alpha1 clj-1.6-alpha2 clj-1.6-alpha3 clj-1.6-beta1 clj-1.6-beta2 clj-1.6-RC1 clj-1.6-RC2 clj-1.6-RC3 clj-1.6-RC4 clj-1.6"

ALL_MAJOR_CLOJURE_VERSIONS="clj-1.2.1 clj-1.3 clj-1.4 clj-1.5.1 clj-1.6-alpha2"
ALL_MAJOR_CLOJURE_VERSIONS="clj-1.2.1 clj-1.3 clj-1.4 clj-1.5.1 clj-1.6"

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] 1.5-beta[1-2] 1.5-RC[1-6] 1.5-beta[7-13] 1.5-RC[14-16] 1.5 1.5.1 1.6-alpha[1-2]"
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] 1.5-beta[1-2] 1.5-RC[1-6] 1.5-beta[7-13] 1.5-RC[14-16] 1.5 1.5.1 1.6-alpha[1-3] 1.6-beta[1-2] 1.6-RC[1-4] 1.6"
}

internal_check_clojure_version_spec()
Expand Down Expand Up @@ -133,12 +133,27 @@ internal_check_clojure_version_spec()
CLJ_VERSION_STR="${spec}"
;;

1.6-alpha[1-2])
1.6-alpha[1-3])
CLJ_VERSION_STR="1.6.0${spec/1.6/}"
;;
1.6.0-alpha[1-2])
1.6.0-alpha[1-3])
CLJ_VERSION_STR="${spec}"
;;
1.6-beta[1-2])
CLJ_VERSION_STR="1.6.0${spec/1.6/}"
;;
1.6.0-beta[1-2])
CLJ_VERSION_STR="${spec}"
;;
1.6-RC[1-4])
CLJ_VERSION_STR="1.6.0${spec/1.6/}"
;;
1.6.0-RC[1-4])
CLJ_VERSION_STR="${spec}"
;;
1.6 | 1.6.0)
CLJ_VERSION_STR="1.6.0"
;;

*)
# Unknown Clojure version
Expand Down Expand Up @@ -250,7 +265,7 @@ all_clojure_versions_except()
# weirdness of time when read vulnerability was addressed before
# release of 1.5.0.

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-RC4 1.5-RC5 1.5-RC6 1.5-beta7 1.5-beta8 1.5-beta9 1.5-beta11 1.5-beta13 1.5-RC15 1.5-RC16 1.5`"
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-RC4 1.5-RC5 1.5-RC6 1.5-beta7 1.5-beta8 1.5-beta9 1.5-beta11 1.5-beta13 1.5-RC15 1.5-RC16 1.5 1.6-RC4`"
#echo "ALL_BENCHMARK_CLOJURE_VERSIONS=${ALL_BENCHMARK_CLOJURE_VERSIONS}"
#exit 0

Expand Down
30 changes: 29 additions & 1 deletion lein-init.sh
Expand Up @@ -22,7 +22,35 @@ LEIN_FILES="`dirname $0`/lein-files"
mkdir -p "${HOME}/lein"
cd "${HOME}/lein"

for alpha in 2 1
for clj_1_6_point_release in 0
do
v="1.6.${clj_1_6_point_release}"
lein1 new clojure-${v}
cd clojure-${v}
make_project_clj_file ${v} project.clj
lein1 deps
cd ..
done

for RC in 4 3 2 1
do
v="1.6.0-RC${RC}"
lein1 new clojure-${v}
cd clojure-${v}
make_project_clj_file ${v} project.clj
lein1 deps
cd ..
done
for beta in 2 1
do
v="1.6.0-beta${beta}"
lein1 new clojure-${v}
cd clojure-${v}
make_project_clj_file ${v} project.clj
lein1 deps
cd ..
done
for alpha in 3 2 1
do
v="1.6.0-alpha${alpha}"
lein1 new clojure-${v}
Expand Down

0 comments on commit cbc3253

Please sign in to comment.