mirror of
https://github.com/zardus/ctf-tools
synced 2024-11-10 16:34:13 +00:00
accidentally blew away the management script...
This commit is contained in:
parent
0ad97cf315
commit
8674dee827
2 changed files with 55 additions and 0 deletions
1
TODO
1
TODO
|
@ -1 +1,2 @@
|
|||
xrop -- doesn't build
|
||||
qira
|
||||
|
|
54
bin/manage-tools
Executable file
54
bin/manage-tools
Executable file
|
@ -0,0 +1,54 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
ACTION=$1
|
||||
TOOL=$2
|
||||
|
||||
cd $(dirname "${BASH_SOURCE[0]}")/..
|
||||
|
||||
case $ACTION in
|
||||
list)
|
||||
for t in *
|
||||
do
|
||||
[ ! -e "$t/install" ] && continue
|
||||
echo $t
|
||||
done
|
||||
;;
|
||||
bin)
|
||||
if [ -n "$TOOL" ]
|
||||
then
|
||||
cd bin
|
||||
ln -sf ../$TOOL/bin/* .
|
||||
echo "TOOLS | $TOOL | bin symlinks updated"
|
||||
cd ..
|
||||
else
|
||||
for t in $(bin/manage-tools list)
|
||||
do
|
||||
bin/manage-tools bin $t
|
||||
done
|
||||
fi
|
||||
|
||||
;;
|
||||
install)
|
||||
cd $TOOL
|
||||
|
||||
echo "TOOLS | $TOOL | starting install"
|
||||
[ -x ./install-root ] && ./install-root
|
||||
./install
|
||||
echo "TOOLS | $TOOL | install finished"
|
||||
|
||||
cd ..
|
||||
$0 bin $TOOL
|
||||
;;
|
||||
uninstall)
|
||||
cd $TOOL
|
||||
|
||||
[ -x ./uninstall ] && ./uninstall
|
||||
git clean -dffx .
|
||||
echo "TOOLS | $TOOL | uninstall finished"
|
||||
|
||||
cd ..
|
||||
;;
|
||||
*)
|
||||
echo "TOOLS | ERROR | unknown action $ACTION"
|
||||
;;
|
||||
esac
|
Loading…
Reference in a new issue