/[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

Annotation of /fix.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.19 - (hide annotations)
Tue Oct 30 16:11:28 2001 UTC (22 years, 5 months ago) by ravilov
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +1 -0 lines
File MIME type: application/x-sh
Added the "pošalji e-mailom" feature. Added the ability to register on "Kalendar ovulacije" for e-mail notifications. Other fixes/improvements.

1 ravilov 1.1 #! /bin/sh
2 ravilov 1.17 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"
3 ravilov 1.16 DIRS2="edit med/edit"
4     LINKS="../index.html img/bolesti/index.html
5 ravilov 1.6 ../index.html img/autori/index.html
6 ravilov 1.17 ../index.html img/autori_cv/index.html
7 ravilov 1.6 ../index.html img/news/index.html
8 ravilov 1.18 ../index.html img/kongresi/index.html
9 ravilov 1.6 ../img/index.html pdf/index.html
10 ravilov 1.7 ../index.html pdf/medicus/index.html
11     ../index.html pdf/inf_glasnik/index.html
12     stanja.tpl templates/lifestyle.tpl
13 ravilov 1.6 ../pdf med/pdf
14     ../inc med/inc
15     ../js med/js
16 ravilov 1.9 ../../img/news med/img/news
17 ravilov 1.10 ../../img/banner-title.gif med/img/banner-title.gif
18     ../../img/pisite.gif med/img/pisite.gif
19     ../../img/knjiznica01.gif med/img/hzzo.gif
20 ravilov 1.9 ../../img/R-black.gif med/img/R-black.gif
21     ../../img/R-lgray.gif med/img/R-lgray.gif
22     ../../img/R-dgray.gif med/img/R-dgray.gif
23     ../../img/R-white.gif med/img/R-white.gif
24 ravilov 1.15 ../../img/show-0.gif med/img/show-0.gif
25     ../../img/show-1.gif med/img/show-1.gif
26 ravilov 1.10 ../../img/mali.vademecum.gif med/img/mali.vademecum.gif
27     ../../img/pio.gif med/img/pio.gif
28     ../../img/chat.gif med/img/chat.gif
29     ../../img/procitajclanak.gif med/img/procitajclanak.gif
30     ../../img/procitaj01.gif med/img/procitaj01.gif
31     ../../img/procitaj02.gif med/img/procitaj02.gif
32     ../../img/procitaj03.gif med/img/procitaj03.gif
33 ravilov 1.18 ../../img/viseotemi.gif med/img/viseotemi.gif
34 ravilov 1.9 ../../img/bolesti med/img/bolesti
35 ravilov 1.18 ../../img/kongresi med/img/kongresi
36 ravilov 1.9 ../../img/autori med/img/autori
37 ravilov 1.17 ../../img/autori_cv med/img/autori_cv
38 ravilov 1.7 ../../img/banneri med/img/banneri
39 ravilov 1.9 ../../img/vademecum med/img/vademecum
40 ravilov 1.6 ../../templates/edit.tpl med/templates/edit.tpl
41 ravilov 1.7 ../../templates/show.tpl med/templates/show.tpl
42     ../../templates/search.tpl med/templates/search.tpl
43 ravilov 1.6 ../../templates/links.tpl med/templates/links.tpl
44     ../../templates/wrapper.tpl med/templates/wrapper.tpl
45     ../../templates/print.tpl med/templates/print.tpl
46 ravilov 1.7 ../../templates/footer.tpl med/templates/footer.tpl
47     ../../templates/author.tpl med/templates/author.tpl
48     ../../templates/highlight.tpl med/templates/highlight.tpl
49 dpavlin 1.8 ../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl
50 ravilov 1.10 ../../templates/qa.tpl med/templates/qa.tpl
51 ravilov 1.14 ../../templates/arhiva.tpl med/templates/arhiva.tpl
52 ravilov 1.19 ../../templates/salji.tpl med/templates/salji.tpl
53 ravilov 1.9 ../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl
54     ../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl
55 ravilov 1.17 ../favicon.ico med/favicon.ico
56 ravilov 1.6 ../index.php med/index.php
57 ravilov 1.18 ../autor.php med/autor.php
58 ravilov 1.10 ../pdf.php med/pdf.php
59 ravilov 1.6 ../legal.php med/legal.php
60 ravilov 1.7 ../stil.php med/stil.php
61 ravilov 1.16 ../levels.css med/levels.css
62     ../../edit/.htaccess med/edit/.htaccess"
63 ravilov 1.5 # -------------
64 ravilov 1.6 cd "`dirname "${0}"`"
65 ravilov 1.1 echo -n "Creating dirs:"
66 ravilov 1.5 for i in ${DIRS}
67 ravilov 1.1 do
68     [ -e "${i}" ] && continue
69     echo -n " [${i}]"
70     mkdir -p "${i}"
71     chmod 777 "${i}"
72 ravilov 1.17 chmod g+s "${i}"
73 ravilov 1.16 done
74     for i in ${DIRS2}
75     do
76 ravilov 1.18 if [ ! -e "${i}" ]
77     then
78     echo -n " [${i}]"
79     mkdir -p "${i}"
80     fi
81 ravilov 1.16 (
82     cd "${i}"
83     for j in ../*
84     do
85     [ "`basename "${j}"`" = "CVS" ] && continue
86     [ -e "`basename "${j}"`" ] || ln -s "${j}"
87     done
88     rm -f "${i}"
89     )
90 ravilov 1.1 done
91     echo " done."
92     echo -n "Creating symlinks:"
93 ravilov 1.2 echo "${LINKS}" | while read line
94     do
95     set -- ${line}
96 ravilov 1.5 [ -z "${1}" ] && continue
97     [ -z "${2}" ] && continue
98 ravilov 1.2 [ -e "${2}" ] && continue
99     echo -n " [${2}]"
100     ln -s "${1}" "${2}"
101     done
102 ravilov 1.1 echo " done."
103     exit "${?}"

  ViewVC Help
Powered by ViewVC 1.1.26