mirror of
https://github.com/zardus/ctf-tools
synced 2024-11-10 08:24:12 +00:00
7144e756e5
early on any error + anticipate that some tools can't be installed by now, but we still want the test to return success to satisfy travis-ci
26 lines
633 B
Bash
Executable file
26 lines
633 B
Bash
Executable file
#!/bin/bash -ex
|
|
|
|
INST_DIR="$PWD"
|
|
|
|
[ -e bindead ] || git clone --depth 1 https://bitbucket.org/mihaila/bindead.git
|
|
cd bindead
|
|
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre ./build.sh
|
|
mvn install
|
|
cd ..
|
|
|
|
[ -e p9 ] || git clone --depth 1 https://bitbucket.org/mihaila/p9.git
|
|
cd p9
|
|
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre ./build.sh
|
|
unzip p9.zip
|
|
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/*
|