forked from foundweekends/conscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·42 lines (35 loc) · 786 Bytes
/
setup.sh
File metadata and controls
executable file
·42 lines (35 loc) · 786 Bytes
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
#!/bin/sh
echo "
Fetching current launch configuration...
"
CS=$HOME/.conscript
CSCS=$CS/n8han/conscript/cs
CLC=$CSCS/launchconfig
mkdir -p $CSCS
curl https://raw.github.com/n8han/conscript/master/src/main/conscript/cs/launchconfig \
> $CLC
echo "
[boot]
directory: $CS/boot" >> $CLC
if hash brew 2>&-; then
BIN=/usr/local/bin
else
BIN=$HOME/bin
fi
mkdir -p $BIN
echo "#!/bin/sh
java -jar $CS/sbt-launch.jar @$CLC \"\$@\"" > $BIN/cs
chmod a+x $BIN/cs
LJV=0.11.2
LJ="sbt-launch-$LJV.jar"
if [ ! -f $CS/$LJ ]; then
echo "
Fetching launcher...
"
curl "http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/$LJV/sbt-launch.jar" \
> $CS/$LJ
ln -sf $CS/$LJ $CS/sbt-launch.jar
fi
echo "
conscript installed to $BIN/cs
"