--- fix.sh 2001/09/19 12:23:56 1.6 +++ fix.sh 2001/10/16 13:07:03 1.17 @@ -1,27 +1,60 @@ #! /bin/sh -DIRS="img/news img/bolesti img/autori pdf templates_c med/templates_c" -LINKS=". edit -. med/edit -../index.html img/bolesti/index.html +DIRS="img/news img/bolesti img/autori img/autori_cv img/kongresi pdf/medicus pdf/inf_glasnik pdf/farm_glasnik templates_c med/templates_c" +DIRS2="edit med/edit" +LINKS="../index.html img/bolesti/index.html ../index.html img/autori/index.html +../index.html img/autori_cv/index.html ../index.html img/news/index.html ../img/index.html pdf/index.html +../index.html pdf/medicus/index.html +../index.html pdf/inf_glasnik/index.html +stanja.tpl templates/lifestyle.tpl ../pdf med/pdf ../inc med/inc -../fonts med/fonts ../js med/js -../img/news med/img/news -../img/bolesti med/img/bolesti -../img/autori med/img/autori +../../img/news med/img/news +../../img/banner-title.gif med/img/banner-title.gif +../../img/pisite.gif med/img/pisite.gif +../../img/knjiznica01.gif med/img/hzzo.gif +../../img/R-black.gif med/img/R-black.gif +../../img/R-lgray.gif med/img/R-lgray.gif +../../img/R-dgray.gif med/img/R-dgray.gif +../../img/R-white.gif med/img/R-white.gif +../../img/show-0.gif med/img/show-0.gif +../../img/show-1.gif med/img/show-1.gif +../../img/mali.vademecum.gif med/img/mali.vademecum.gif +../../img/pio.gif med/img/pio.gif +../../img/chat.gif med/img/chat.gif +../../img/procitajclanak.gif med/img/procitajclanak.gif +../../img/procitaj01.gif med/img/procitaj01.gif +../../img/procitaj02.gif med/img/procitaj02.gif +../../img/procitaj03.gif med/img/procitaj03.gif +../../img/bolesti med/img/bolesti +../../img/autori med/img/autori +../../img/autori_cv med/img/autori_cv +../../img/banneri med/img/banneri +../../img/vademecum med/img/vademecum ../../templates/edit.tpl med/templates/edit.tpl +../../templates/show.tpl med/templates/show.tpl +../../templates/search.tpl med/templates/search.tpl ../../templates/links.tpl med/templates/links.tpl ../../templates/wrapper.tpl med/templates/wrapper.tpl ../../templates/print.tpl med/templates/print.tpl -../../templates/footer.tpl med/templates/print.tpl +../../templates/footer.tpl med/templates/footer.tpl +../../templates/author.tpl med/templates/author.tpl +../../templates/highlight.tpl med/templates/highlight.tpl +../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl +../../templates/qa.tpl med/templates/qa.tpl +../../templates/arhiva.tpl med/templates/arhiva.tpl +../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl +../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl +../favicon.ico med/favicon.ico ../index.php med/index.php +../pdf.php med/pdf.php ../legal.php med/legal.php -../verdanab.ttf med/verdanab.ttf -../button.php med/button.php" +../stil.php med/stil.php +../levels.css med/levels.css +../../edit/.htaccess med/edit/.htaccess" # ------------- cd "`dirname "${0}"`" echo -n "Creating dirs:" @@ -31,6 +64,22 @@ echo -n " [${i}]" mkdir -p "${i}" chmod 777 "${i}" + chmod g+s "${i}" +done +for i in ${DIRS2} +do + [ -e "${i}" ] && continue + echo -n " [${i}]" + mkdir -p "${i}" + ( + cd "${i}" + for j in ../* + do + [ "`basename "${j}"`" = "CVS" ] && continue + [ -e "`basename "${j}"`" ] || ln -s "${j}" + done + rm -f "${i}" + ) done echo " done." echo -n "Creating symlinks:"