2017-02-16 21:40:17 +00:00
|
|
|
#!/bin/bash -ex
|
2015-05-14 19:49:06 +00:00
|
|
|
|
|
|
|
INST_DIR="$PWD"
|
|
|
|
|
2015-12-09 22:42:41 +00:00
|
|
|
[ -e bindead ] || git clone --depth 1 https://bitbucket.org/mihaila/bindead.git
|
2015-05-14 19:49:06 +00:00
|
|
|
cd bindead
|
|
|
|
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre ./build.sh
|
2017-02-12 09:28:44 +00:00
|
|
|
mvn install
|
2015-05-14 19:49:06 +00:00
|
|
|
cd ..
|
|
|
|
|
2015-12-09 22:42:41 +00:00
|
|
|
[ -e p9 ] || git clone --depth 1 https://bitbucket.org/mihaila/p9.git
|
2015-05-14 19:49:06 +00:00
|
|
|
cd p9
|
|
|
|
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre ./build.sh
|
2015-05-14 20:00:51 +00:00
|
|
|
unzip p9.zip
|
2015-05-14 19:49:06 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
mkdir -p bin
|
|
|
|
cat <<END > bin/bindead
|
|
|
|
#!/bin/bash
|
|
|
|
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre java -jar $INST_DIR/bindead/bindead.jar "\$@"
|
|
|
|
END
|
|
|
|
cat <<END > bin/p9
|
|
|
|
#!/bin/bash
|
|
|
|
$INST_DIR/p9/p9/bin/p9 --jdkhome /usr/lib/jvm/java-7-openjdk-amd64/jre "\$@"
|
|
|
|
END
|
|
|
|
chmod 755 bin/*
|