/[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.9 - (hide annotations)
Wed Sep 26 13:04:28 2001 UTC (18 years ago) by ravilov
Branch: MAIN
Changes since 1.8: +10 -3 lines
File MIME type: application/x-sh
Added some missing files, and some missing features...

1 ravilov 1.1 #! /bin/sh
2 ravilov 1.7 DIRS="img/news img/bolesti img/autori pdf/medicus pdf/inf_glasnik templates_c med/templates_c"
3 ravilov 1.6 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 ravilov 1.7 ../index.html pdf/medicus/index.html
10     ../index.html pdf/inf_glasnik/index.html
11     stanja.tpl templates/lifestyle.tpl
12 ravilov 1.6 ../pdf med/pdf
13     ../inc med/inc
14     ../fonts med/fonts
15     ../js med/js
16 ravilov 1.9 ../../img/news med/img/news
17     ../../img/R-black.gif med/img/R-black.gif
18     ../../img/R-lgray.gif med/img/R-lgray.gif
19     ../../img/R-dgray.gif med/img/R-dgray.gif
20     ../../img/R-white.gif med/img/R-white.gif
21     ../../img/bolesti med/img/bolesti
22     ../../img/autori med/img/autori
23 ravilov 1.7 ../../img/banneri med/img/banneri
24 ravilov 1.9 ../../img/vademecum med/img/vademecum
25 ravilov 1.6 ../../templates/edit.tpl med/templates/edit.tpl
26 ravilov 1.7 ../../templates/show.tpl med/templates/show.tpl
27     ../../templates/search.tpl med/templates/search.tpl
28 ravilov 1.6 ../../templates/links.tpl med/templates/links.tpl
29     ../../templates/wrapper.tpl med/templates/wrapper.tpl
30     ../../templates/print.tpl med/templates/print.tpl
31 ravilov 1.7 ../../templates/footer.tpl med/templates/footer.tpl
32     ../../templates/author.tpl med/templates/author.tpl
33     ../../templates/highlight.tpl med/templates/highlight.tpl
34 dpavlin 1.8 ../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl
35 ravilov 1.9 ../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl
36     ../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl
37 ravilov 1.6 ../index.php med/index.php
38     ../legal.php med/legal.php
39 ravilov 1.7 ../stil.php med/stil.php
40     ../levels.css med/levels.css
41 ravilov 1.6 ../verdanab.ttf med/verdanab.ttf
42     ../button.php med/button.php"
43 ravilov 1.5 # -------------
44 ravilov 1.6 cd "`dirname "${0}"`"
45 ravilov 1.1 echo -n "Creating dirs:"
46 ravilov 1.5 for i in ${DIRS}
47 ravilov 1.1 do
48     [ -e "${i}" ] && continue
49     echo -n " [${i}]"
50     mkdir -p "${i}"
51     chmod 777 "${i}"
52     done
53     echo " done."
54     echo -n "Creating symlinks:"
55 ravilov 1.2 echo "${LINKS}" | while read line
56     do
57     set -- ${line}
58 ravilov 1.5 [ -z "${1}" ] && continue
59     [ -z "${2}" ] && continue
60 ravilov 1.2 [ -e "${2}" ] && continue
61     echo -n " [${2}]"
62     ln -s "${1}" "${2}"
63     done
64 ravilov 1.1 echo " done."
65     exit "${?}"

  ViewVC Help
Powered by ViewVC 1.1.26