/[health_html]/fix.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /fix.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations)
Tue Oct 2 16:18:09 2001 UTC (17 years, 10 months ago) by ravilov
Branch: MAIN
Changes since 1.12: +1 -1 lines
File MIME type: application/x-sh
Users can now pick their username/password on registration (PLIVAmed). Other bugfixes.

1 #! /bin/sh
2 DIRS="img/news img/bolesti img/autori pdf/medicus pdf/inf_glasnik pdf/farm_glasnik templates_c med/templates_c"
3 LINKS=". edit
4 . med/edit
5 ../index.html img/bolesti/index.html
6 ../index.html img/autori/index.html
7 ../index.html img/news/index.html
8 ../img/index.html pdf/index.html
9 ../index.html pdf/medicus/index.html
10 ../index.html pdf/inf_glasnik/index.html
11 stanja.tpl templates/lifestyle.tpl
12 ../pdf med/pdf
13 ../inc med/inc
14 ../js med/js
15 ../../img/news med/img/news
16 ../../img/banner-title.gif med/img/banner-title.gif
17 ../../img/pisite.gif med/img/pisite.gif
18 ../../img/knjiznica01.gif med/img/hzzo.gif
19 ../../img/R-black.gif med/img/R-black.gif
20 ../../img/R-lgray.gif med/img/R-lgray.gif
21 ../../img/R-dgray.gif med/img/R-dgray.gif
22 ../../img/R-white.gif med/img/R-white.gif
23 ../../img/mali.vademecum.gif med/img/mali.vademecum.gif
24 ../../img/pio.gif med/img/pio.gif
25 ../../img/chat.gif med/img/chat.gif
26 ../../img/procitajclanak.gif med/img/procitajclanak.gif
27 ../../img/procitaj01.gif med/img/procitaj01.gif
28 ../../img/procitaj02.gif med/img/procitaj02.gif
29 ../../img/procitaj03.gif med/img/procitaj03.gif
30 ../../img/bolesti med/img/bolesti
31 ../../img/autori med/img/autori
32 ../../img/banneri med/img/banneri
33 ../../img/vademecum med/img/vademecum
34 ../../templates/edit.tpl med/templates/edit.tpl
35 ../../templates/show.tpl med/templates/show.tpl
36 ../../templates/search.tpl med/templates/search.tpl
37 ../../templates/links.tpl med/templates/links.tpl
38 ../../templates/wrapper.tpl med/templates/wrapper.tpl
39 ../../templates/print.tpl med/templates/print.tpl
40 ../../templates/footer.tpl med/templates/footer.tpl
41 ../../templates/author.tpl med/templates/author.tpl
42 ../../templates/highlight.tpl med/templates/highlight.tpl
43 ../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl
44 ../../templates/qa.tpl med/templates/qa.tpl
45 ../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl
46 ../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl
47 ../index.php med/index.php
48 ../pdf.php med/pdf.php
49 ../legal.php med/legal.php
50 ../stil.php med/stil.php
51 ../levels.css med/levels.css"
52 # -------------
53 cd "`dirname "${0}"`"
54 echo -n "Creating dirs:"
55 for i in ${DIRS}
56 do
57 [ -e "${i}" ] && continue
58 echo -n " [${i}]"
59 mkdir -p "${i}"
60 chmod 777 "${i}"
61 done
62 echo " done."
63 echo -n "Creating symlinks:"
64 echo "${LINKS}" | while read line
65 do
66 set -- ${line}
67 [ -z "${1}" ] && continue
68 [ -z "${2}" ] && continue
69 [ -e "${2}" ] && continue
70 echo -n " [${2}]"
71 ln -s "${1}" "${2}"
72 done
73 echo " done."
74 exit "${?}"

  ViewVC Help
Powered by ViewVC 1.1.26