Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 175 lines (155 sloc) 3.383 kb
#! /bin/bash
# A script to assist Andy in creating a consistent set of Clojure .jar
# 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"
cd "${HOME}/lein"
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}
cd clojure-${v}
make_project_clj_file ${v} project.clj
lein1 deps
cd ..
done
for clj_1_5_point_release in 1 0
do
v="1.5.${clj_1_5_point_release}"
lein1 new clojure-${v}
cd clojure-${v}
make_project_clj_file ${v} project.clj
lein1 deps
cd ..
done
for RC in 16 15 14 6 5 4 3 2 1
do
v="1.5.0-RC${RC}"
lein1 new clojure-${v}
cd clojure-${v}
make_project_clj_file ${v} project.clj
lein1 deps
cd ..
done
for beta in 13 12 11 10 9 8 7 2 1
do
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 alpha in 7 6 5 4 3 2 1
do
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 clj_1_4_point_release in 0
do
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 beta in 7 6 5 4 3 2 1
do
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 alpha in 4 3 2 1
do
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 clj_1_3_point_release in 0
do
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 beta in 3 2 1
do
v="1.3.0-beta${beta}"
lein1 new clojure-${v}
cd clojure-${v}
make_project_clj_file ${v} project.clj
lein1 deps
cd ..
done
# It appears that 1.3.0 alpha version 1, 3, and 4 are no longer
# available from Maven repo.
#for alpha in 8 7 6 5 4 3 1
for alpha in 8 7 6 5
do
v="1.3.0-alpha${alpha}"
lein1 new clojure-${v}
cd clojure-${v}
make_project_clj_file ${v} project.clj
lein1 deps
cd ..
done
for clj_1_2_point_release in 1 0
do
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
Jump to Line
Something went wrong with that request. Please try again.