projects
/
brisk-img.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
91836d0
)
installation refactored (from flat to hierarchy)
author
Matteo Nastasi (mop)
<nastasi@alternativeoutput.it>
Sat, 16 Feb 2008 10:18:53 +0000
(10:18 +0000)
committer
Matteo Nastasi (mop)
<nastasi@alternativeoutput.it>
Sat, 16 Feb 2008 10:18:53 +0000
(10:18 +0000)
INSTALL.sh
patch
|
blob
|
history
diff --git
a/INSTALL.sh
b/INSTALL.sh
index
f093474
..
580536f
100755
(executable)
--- a/
INSTALL.sh
+++ b/
INSTALL.sh
@@
-8,7
+8,7
@@
web_path="$HOME/brisk"
web_only=0
if [ -f $HOME/.brisk_install ]; then
web_only=0
if [ -f $HOME/.brisk_install ]; then
- . $HOME/.
brisk
_install
+ . $HOME/.
spawn
_install
fi
function usage () {
fi
function usage () {
@@
-43,7
+43,7
@@
function get_param () {
#
if [ "$1" = "-p" -o "$1" = "--package" ]; then
cd ..
#
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
cd -
exit 0
fi
@@
-70,7
+70,11
@@
echo " ftok_path: \"$ftok_path\""
echo " n_players: $n_players"
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
exit 0