web_only=0
if [ -f $HOME/.brisk_install ]; then
- . $HOME/.brisk_install
+ . $HOME/.spawn_install
fi
function usage () {
#
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`
+ tar zcvf brisk-img.tgz `find brisk-img -name INSTALL.sh -o -name '*.png' -o -name '*.jpg' -o -name '*.gif' | grep -v '/src_'`
cd -
exit 0
fi
echo " n_players: $n_players"
-install -d ${web_path}/img
-install -m 644 `ls img/*.{jpg,png,gif} | 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' | grep -v '/src_'` ${web_path}/$ii
+done
+
exit 0