echo " -p save preferences in the file"
echo " -W web files only"
echo " -n number of players - def. $n_players"
echo " -p save preferences in the file"
echo " -W web files only"
echo " -n number of players - def. $n_players"
echo " -a authorization file name - def. \"$brisk_auth_file\""
echo " -d activate dabug - def. $brisk_debug"
echo " -w dir where place the web tree - def. \"$web_path\""
echo " -a authorization file name - def. \"$brisk_auth_file\""
echo " -d activate dabug - def. $brisk_debug"
echo " -w dir where place the web tree - def. \"$web_path\""
-f*) conffile="`get_param "-f" "$1" "$2"`"; sh=$?;;
-p*) outconf="`get_param "-p" "$1" "$2"`"; sh=$?;;
-n*) n_players="`get_param "-n" "$1" "$2"`"; sh=$?;;
-f*) conffile="`get_param "-f" "$1" "$2"`"; sh=$?;;
-p*) outconf="`get_param "-p" "$1" "$2"`"; sh=$?;;
-n*) n_players="`get_param "-n" "$1" "$2"`"; sh=$?;;
-a*) brisk_auth_file="`get_param "-a" "$1" "$2"`"; sh=$?;;
-d*) brisk_debug="`get_param "-d" "$1" "$2"`"; sh=$?;;
-w*) web_path="`get_param "-w" "$1" "$2"`"; sh=$?;;
-a*) brisk_auth_file="`get_param "-a" "$1" "$2"`"; sh=$?;;
-d*) brisk_debug="`get_param "-d" "$1" "$2"`"; sh=$?;;
-w*) web_path="`get_param "-w" "$1" "$2"`"; sh=$?;;
echo " brisk_auth_file: \"$brisk_auth_file\""
echo " brisk_debug:\"$brisk_debug\""
echo " web_path: \"$web_path\""
echo " brisk_auth_file: \"$brisk_auth_file\""
echo " brisk_debug:\"$brisk_debug\""
echo " web_path: \"$web_path\""
echo "brisk_auth_file=\"$brisk_auth_file\""
echo "brisk_debug=\"$brisk_debug\""
echo "web_path=\"$web_path\""
echo "brisk_auth_file=\"$brisk_auth_file\""
echo "brisk_debug=\"$brisk_debug\""
echo "web_path=\"$web_path\""
sed -i "s@define *( *FTOK_PATH,[^)]*)@define(FTOK_PATH, \"$ftok_path\")@g" `find ${web_path}__ -type f -name '*.ph*' -exec grep -l 'define *( *FTOK_PATH,[^)]*)' {} \;`
sed -i "s@define *( *FTOK_PATH,[^)]*)@define(FTOK_PATH, \"$ftok_path\")@g" `find ${web_path}__ -type f -name '*.ph*' -exec grep -l 'define *( *FTOK_PATH,[^)]*)' {} \;`
sed -i "s@define *( *BRISK_DEBUG,[^)]*)@define(BRISK_DEBUG, $brisk_debug)@g" ${web_path}__/Obj/brisk.phh
sed -i "s@define *( *BRISK_DEBUG,[^)]*)@define(BRISK_DEBUG, $brisk_debug)@g" ${web_path}__/Obj/brisk.phh
if [ -f "$etc_path/$brisk_conf" ]; then
echo "Config file $etc_path/$brisk_conf exists."
echo "=== Dump the diff. ==="
if [ -f "$etc_path/$brisk_conf" ]; then
echo "Config file $etc_path/$brisk_conf exists."
echo "=== Dump the diff. ==="