forked from gkossakowski/build-play20
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-play.sh
executable file
·165 lines (148 loc) · 2.89 KB
/
build-play.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#/bin/sh
set -e
SCALA_VERSION_DIFF=2.10.0-virtualized-SNAPSHOT
SCALA_VERSION_WANTED=$SCALA_VIRTUALIZED_VERSION
alias sbt="sbt @`pwd`/sbt.boot.properties"
FRESH=1
mkdir -p build
substitute_scala_version() {
sed "s/$SCALA_VERSION_DIFF/$SCALA_VERSION_WANTED/g"
}
substitute_home() {
sed "s:__HOME__:$HOME:g"
}
# http://nbronson.github.com/scala-stm/index.html
scala_stm() {
if [ $FRESH ]
then
cd build
git clone https://github.com/nbronson/scala-stm.git
cd scala-stm
git checkout release-0.5
cat ../../scala_stm.diff | substitute_scala_version | git apply -
else
cd build/scala-stm
fi
sbt publish-local
cd ../../
}
jerkson() {
if [ $FRESH ]
then
cd build
git clone https://github.com/codahale/jerkson.git
cd jerkson
git checkout v0.5.0
cat ../../jerkson.diff | substitute_scala_version | git apply -
else
cd build/jerkson
fi
sbt publish-local
cd ../../
}
scala_arm() {
if [ $FRESH ]
then
cd build
git clone https://github.com/jsuereth/scala-arm.git
cd scala-arm
git checkout 1.1
cat ../../scala_arm.diff | substitute_scala_version | git apply -
else
cd build/scala-arm
fi
sbt publish-local
cd ../../
}
scala_io() {
if [ $FRESH ]
then
cd build
git clone https://github.com/jesseeichar/scala-io.git
cd scala-io
git checkout 0.4.0
cat ../../scala_io.diff | substitute_scala_version | git apply -
else
cd build/scala-io
fi
sbt publish-local
cd ../../
}
akka() {
if [ $FRESH ]
then
cd build
git clone https://github.com/akka/akka.git
cd akka
git checkout v2.0.2
cat ../../akka.diff | substitute_scala_version | git apply -
else
cd build/akka
fi
sbt publish-local
cd ../../
}
scalacheck() {
if [ $FRESH ]
then
cd build
git clone git://github.com/rickynils/scalacheck.git
cd scalacheck
git checkout 1.9
cat ../../scalacheck.diff | substitute_scala_version | git apply -
else
cd build/scalacheck
fi
sbt publish-local
cd ../../
}
specs2() {
if [ $FRESH ]
then
cd build
git clone git://github.com/etorreborre/specs2.git
cd specs2
git checkout SPECS2-1.9
cat ../../specs2.diff | substitute_scala_version | git apply -
else
cd build/specs2
fi
sbt publish-local
cd ../../
}
xsbt() {
if [ $FRESH ]
then
cd build
git clone git://github.com/harrah/xsbt.git
cd xsbt
git checkout v0.11.3
cat ../../xsbt.diff | substitute_scala_version | git apply -
else
cd build/xsbt
fi
sbt publish-local
cd ../../
}
Play20() {
if [ $FRESH ]
then
cd build
git clone git://github.com/playframework/Play20.git
cd Play20/framework
git checkout 2.0.2
cat ../../../play20.diff | substitute_scala_version | substitute_home | git apply -
else
cd build/Play20/framework
fi
sh build publish-local
}
scala_stm
jerkson
scala_arm
scala_io
akka
scalacheck
specs2
xsbt
Play20