X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=brisk-img.git;a=blobdiff_plain;f=INSTALL.sh;h=f0934748819ead9d5bba3ff8076dc063ccca5b52;hp=054181b8a2e7e0bfa9e690faf58701269508d2c2;hb=490af21b0b549b35a46ec7fa6ded796bb9b49c52;hpb=558375df46f16c07cb02b861d76723c406885802 diff --git a/INSTALL.sh b/INSTALL.sh index 054181b..f093474 100755 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -13,7 +13,9 @@ fi function usage () { echo + echo "$1 [-p|--package]" echo "$1 [-n 3|5] [-w web_dir] [-k ] [-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\"" @@ -39,6 +41,13 @@ function get_param () { # # 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' | grep -v imgsrc` + cd - + exit 0 +fi + while [ $# -gt 0 ]; do # echo aa $1 xx $2 bb case $1 in @@ -62,6 +71,6 @@ echo " n_players: $n_players" install -d ${web_path}/img -install -m 644 `ls img/*.{jpg,png} | grep -v 'img/src_'` ${web_path}/img +install -m 644 `ls img/*.{jpg,png,gif} | grep -v 'img/src_'` ${web_path}/img exit 0