projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IE6 not understand grey color, change all to gray
[brisk.git]
/
INSTALL.sh
diff --git
a/INSTALL.sh
b/INSTALL.sh
index
e2f2b51
..
3bd354d
100755
(executable)
--- a/
INSTALL.sh
+++ b/
INSTALL.sh
@@
-3,7
+3,7
@@
#
# Defaults
#
#
# Defaults
#
-CONFIG_FILE="$HOME/.br
o
sk_install"
+CONFIG_FILE="$HOME/.br
i
sk_install"
players_n=3
tables_n=44
players_n=3
tables_n=44
@@
-201,6
+201,8
@@
if [ $? -ne 0 ]; then
exit 1
fi
exit 1
fi
+IFS='
+'
#
# Installation
#
#
# Installation
#
@@
-251,7
+253,7
@@
if [ "$web_only" = "FALSE" ]; then
chmod 777 ${ftokk_path}/bin5
fi
chmod 777 ${ftokk_path}/bin5
fi
- for i in $(seq 0 $
max_players
); do
+ for i in $(seq 0 $
((tables_n - 1))
); do
if [ ! -d ${ftokk_path}/bin5/table$i ]; then
mkdir ${ftokk_path}/bin5/table$i
fi
if [ ! -d ${ftokk_path}/bin5/table$i ]; then
mkdir ${ftokk_path}/bin5/table$i
fi
@@
-262,27
+264,23
@@
if [ "$web_only" = "FALSE" ]; then
touch ${ftokk_path}/bin5/table$i/user$e
chmod 666 ${ftokk_path}/bin5/table$i/user$e
done
touch ${ftokk_path}/bin5/table$i/user$e
chmod 666 ${ftokk_path}/bin5/table$i/user$e
done
+ # create subdirectories in proxy path
+ if [ ! -d ${proxy_path}/bin5/table$i ]; then
+ mkdir -p ${proxy_path}/bin5/table$i
+ fi
done
done
+ chmod -R 777 ${proxy_path}/bin5
- # create subdirectories in proxy path
- if [ ! -d ${proxy_path}/bin5 ]; then
- mkdir ${proxy_path}/bin5
- fi
- chmod 777 ${proxy_path}/bin5
fi
install -d ${web_path}__
fi
install -d ${web_path}__
-for i in $(find web -type d |
grep -v /CVS |
sed 's/^....//g'); do
+for i in $(find web -type d | sed 's/^....//g'); do
install -d ${web_path}__/$i
done
install -d ${web_path}__/$i
done
-for i in $(find web -name '
*.php' -o -name '*.phh' -o -name '*.pho' -o -name '*.css' -o -name '*.js' -o -name '*.mp3' -o -name '*.swf' | grep -v /CVS
| sed 's/^....//g'); do
- install -m 644
web/$i ${web_path}__/$i
+for i in $(find web -name '
.htaccess' -o -name '*.php' -o -name '*.phh' -o -name '*.pho' -o -name '*.css' -o -name '*.js' -o -name '*.mp3' -o -name '*.swf'
| sed 's/^....//g'); do
+ install -m 644
"web/$i" "${web_path}__/$i"
done
done
-cd web
-find . -name '.htaccess' -exec install -m 644 {} ${web_path}__/{} \;
-cd - >/dev/null 2>&1
-
if [ $players_n -eq 5 ]; then
send_time=250
else
if [ $players_n -eq 5 ]; then
send_time=250
else