summarylogtreecommitdiffstats
path: root/3dtk.sh
blob: 8d09c85d0811c1ed9dceede75cd279142064fd96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/bash
## 
## 3DTK helper script for installations of binaries to /opt/3dtk
## 

usage() {
	echo "Usage: $0 TOOL [args...]"
        echo "Use '$0 tools' for a list of tools"
        exit 0
}

if (( $# < 1 ))
then
	usage
fi

case $1 in
	"tools")
		find /opt/3dtk -maxdepth 1 -type f -executable -exec basename {} \;
		exit 0
		;;
	"help" | "--help" | "-h" | "-?")
		usage
		;;
esac

eval /opt/3dtk/$@