From 2702572e0478328e9b45440c1046abc8479ca8c0 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sat, 16 Feb 2008 10:18:53 +0000 Subject: [PATCH] installation refactored (from flat to hierarchy) --- INSTALL.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/INSTALL.sh b/INSTALL.sh index f093474..580536f 100755 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -8,7 +8,7 @@ web_path="$HOME/brisk" web_only=0 if [ -f $HOME/.brisk_install ]; then - . $HOME/.brisk_install + . $HOME/.spawn_install fi function usage () { @@ -43,7 +43,7 @@ function get_param () { # 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 @@ -70,7 +70,11 @@ echo " ftok_path: \"$ftok_path\"" 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 -- 2.17.1