6 ftok_path="/var/lib/brisk"
10 if [ -f $HOME/.brisk_install ]; then
11 . $HOME/.brisk_install
16 echo "$1 [-n 3|5] [-w web_dir] [-k <ftok_dir>] [-W]"
18 echo " -n number of players - def. $n_players"
19 echo " -w dir where place the web tree - def. \"$web_path\""
20 echo " -k dir where place ftok files - def. \"$ftok_path\""
21 echo " -W install web files only"
25 function get_param () {
26 echo "X$2" | grep -q "^X$1\$"
42 while [ $# -gt 0 ]; do
45 -n*) n_players="`get_param "-n" "$1" "$2"`"; sh=$?;;
46 -w*) web_path="`get_param "-w" "$1" "$2"`"; sh=$?;;
47 -k*) ftok_path="`get_param "-k" "$1" "$2"`"; sh=$?;;
49 -h) usage $0; exit 0;;
59 echo " web_path: \"$web_path\""
60 echo " ftok_path: \"$ftok_path\""
61 echo " n_players: $n_players"
64 install -d ${web_path}/img
65 install -m 644 `ls img/*.{jpg,png} | grep -v 'img/src_'` ${web_path}/img