ctf-tools/bindead/install
2015-05-14 12:49:06 -07:00

24 lines
587 B
Bash
Executable file

#!/bin/bash -e
INST_DIR="$PWD"
[ -e bindead ] || git clone https://bitbucket.org/mihaila/bindead.git
cd bindead
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre ./build.sh
cd ..
[ -e p9 ] || git clone https://bitbucket.org/mihaila/p9.git
cd p9
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre ./build.sh
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/*