ctf-tools/angr/install
Steven Van Acker 7144e756e5 fail hard on any error + verify that all scripts use bash -ex to fail
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
2017-02-16 22:40:17 +01:00

21 lines
796 B
Bash
Executable file

#!/bin/bash -ex
source ctf-tools-venv-activate
#[ -e $VIRTUAL_ENV/lib/python2.7/site-packages/PyQt4 ] || ln -s /usr/lib/python2.7/dist-packages/PyQt4 $VIRTUAL_ENV/lib/python2.7/site-packages/
#[ -e $VIRTUAL_ENV/lib/python2.7/site-packages/sip.so ] || ln -s /usr/lib/python2.7/dist-packages/sip.so $VIRTUAL_ENV/lib/python2.7/site-packages/
#[ -e $VIRTUAL_ENV/lib/python2.7/site-packages/pygraphviz ] || ln -s /usr/lib/pymodules/python2.7/pygraphviz $VIRTUAL_ENV/lib/python2.7/site-packages/
git clone --depth 1 https://github.com/angr/angr-dev
GIT_ASKPASS=echo angr-dev/setup.sh -w -r https://git:@github.com/salls angrop
rm -rf angr-dev/wheels
mkdir -p bin
cd bin
cat <<END > angr-management
#!/bin/bash -e
$VIRTUAL_ENV/bin/python -m angrmanagement "\$@"
END
chmod 755 angr-management
cd ..