X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=INSTALL.sh;h=e8de2f7567da5f9a0659b51aa743d4ea9cc5f9de;hb=2338f1bebd53050610b91d6940d8d20760df02b7;hp=670329eaaf4188fef66f8f9308483567f19db957;hpb=7b5e4084f27b054398e9da0250c166c16d4e8b6c;p=curl-de-sac.git diff --git a/INSTALL.sh b/INSTALL.sh index 670329e..e8de2f7 100755 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -274,15 +274,19 @@ for i in $(find web -type d | grep '/' | sed 's/^....//g'); do install -d ${web_path}/$i done -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' -o -name 'terms-of-service*' | sed 's/^....//g'); do +for i in $(find web -name '.htaccess' -o -name '*.php' -o -name '*.phh' -o -name '*.pho' -o -name '*.html' -o -name '*.css' -o -name '*.js' -o -name '*.mp3' -o -name '*.swf' -o -name 'terms-of-service*' | sed 's/^....//g'); do install -m 644 "web/$i" "${web_path}/$i" done if [ "$test_add" = "TRUE" ]; then - for i in $(find webtest -name '.htaccess' -o -name '*.phh' -o -name '*.pho' -o -name '*.css' -o -name '*.js' -o -name '*.mp3' -o -name '*.swf' -o -name 'terms-of-service*' | sed 's/^........//g'); do - install -m 644 "webtest/$i" "${web_path}/$i" + for i in $(find webtest -type d | grep '/' | sed 's/^........//g'); do + install -d ${web_path}/test/$i + done + + for i in $(find webtest -name '.htaccess' -o -name '*.phh' -o -name '*.pho' -o -name '*.html' -o -name '*.css' -o -name '*.js' -o -name '*.mp3' -o -name '*.swf' -o -name 'terms-of-service*' | sed 's/^........//g'); do + install -m 644 "webtest/$i" "${web_path}/test/$i" done for i in $(find webtest -name '*.php' | sed 's/^........//g'); do - install -m 755 "webtest/$i" "${web_path}/$i" + install -m 755 "webtest/$i" "${web_path}/test/$i" done fi