X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=INSTALL.sh;h=8b7ea985ec83b8797d4a57eae1c087075024d1c1;hb=b9534a40010ce28590326b59d5270a96f5a7465b;hp=cd2ee064300d89f650d74f5d4827099b0682f2b5;hpb=fb8e29266b628c4ea99b724fe8442f6e9421b78c;p=brisk.git diff --git a/INSTALL.sh b/INSTALL.sh index cd2ee06..8b7ea98 100755 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -1,17 +1,12 @@ #!/bin/bash # set -x - -# -# ONLY FOR TEST -# - # # Defaults # players_n=3 tables_n=16 tables_auth_n=6 -brisk_auth_conf="brisk_auth.conf.pho" +brisk_auth_conf="brisk_auth2.conf.pho" brisk_debug="0xffff" web_path="$HOME/brisk" legal_path="$HOME/brisk-priv" @@ -20,8 +15,13 @@ proxy_path="$HOME/brisk-priv/proxy" web_only="FALSE" brisk_conf="brisk.conf.pho" -if [ -f $HOME/.trusty_install ]; then - . $HOME/.trusty_install +if [ "$1" = "--ck" ]; then + find -name '*.pho' -o -name '*.phh' -o -name '*.php' -exec php5 -l {} \; + exit 0 +fi + +if [ -f $HOME/.brisk_install ]; then + . $HOME/.brisk_install fi if [ "x$cookie_path" = "x" ]; then cookie_path=$web_path @@ -29,6 +29,7 @@ fi function usage () { echo echo "$1 -h" + echo "$1 --ck - run lintian on all ph* files." echo "$1 [-W] [-n 3|5] [-t <(n>=4)>] [-T ] [-a ] [-f conffile] [-p outconf] [-d TRUE|FALSE] [-w web_dir] [-k ] [-l ] [-y ] [-c ]" echo " -h this help" echo " -f use this config file"