web_path="$HOME/brisk"
web_only=0
-if [ -f $HOME/.brisk_install ]; then
- . $HOME/.brisk_install
+if [ -f $HOME/.trusty_install ]; then
+ . $HOME/.trusty_install
fi
function usage () {
echo
+ echo "$1 [-p|--package]"
echo "$1 [-n 3|5] [-w web_dir] [-k <ftok_dir>] [-W]"
+ echo " -p build \"binary\" version of the package"
echo " -h this help"
echo " -n number of players - def. $n_players"
echo " -w dir where place the web tree - def. \"$web_path\""
#
# MAIN
#
+if [ "$1" = "-p" -o "$1" = "--package" ]; then
+ cd ..
+ tar zcvf brisk-img.tgz `find brisk-img -name INSTALL.sh -o -name '*.png' -o -name '*.jpg' -o -name '*.gif' -o -name '.htaccess' | grep -v '/src_'`
+ cd -
+ exit 0
+fi
+
while [ $# -gt 0 ]; do
# echo aa $1 xx $2 bb
case $1 in
echo " n_players: $n_players"
-install -d ${web_path}/img
-install -m 644 `ls img/*.{jpg,png} | grep -v 'img/src_'` ${web_path}/img
+for i in `find -type d -name 'img'`; do
+ ii="`echo "$i" | cut -c 3- `"
+ install -d ${web_path}/$ii
+ install -m 644 `find $ii -name INSTALL.sh -o -name '*.png' -o -name '*.jpg' -o -name '*.gif' -o -name '.htaccess' | grep -v '/src_'` ${web_path}/$ii
+done
+
exit 0