/[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.7 - (show annotations)
Tue Sep 25 15:38:04 2001 UTC (22 years, 7 months ago) by ravilov
Branch: MAIN
Changes since 1.6: +12 -2 lines
File MIME type: application/x-sh
Major changes. Too numeruous to mention all here.

1 #! /bin/sh
2 DIRS="img/news img/bolesti img/autori pdf/medicus pdf/inf_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 ../fonts med/fonts
15 ../js med/js
16 ../img/news med/img/news
17 ../img/bolesti med/img/bolesti
18 ../img/autori med/img/autori
19 ../../img/banneri med/img/banneri
20 ../../templates/edit.tpl med/templates/edit.tpl
21 ../../templates/show.tpl med/templates/show.tpl
22 ../../templates/search.tpl med/templates/search.tpl
23 ../../templates/links.tpl med/templates/links.tpl
24 ../../templates/wrapper.tpl med/templates/wrapper.tpl
25 ../../templates/print.tpl med/templates/print.tpl
26 ../../templates/footer.tpl med/templates/footer.tpl
27 ../../templates/author.tpl med/templates/author.tpl
28 ../../templates/highlight.tpl med/templates/highlight.tpl
29 ../index.php med/index.php
30 ../legal.php med/legal.php
31 ../stil.php med/stil.php
32 ../levels.css med/levels.css
33 ../verdanab.ttf med/verdanab.ttf
34 ../button.php med/button.php"
35 # -------------
36 cd "`dirname "${0}"`"
37 echo -n "Creating dirs:"
38 for i in ${DIRS}
39 do
40 [ -e "${i}" ] && continue
41 echo -n " [${i}]"
42 mkdir -p "${i}"
43 chmod 777 "${i}"
44 done
45 echo " done."
46 echo -n "Creating symlinks:"
47 echo "${LINKS}" | while read line
48 do
49 set -- ${line}
50 [ -z "${1}" ] && continue
51 [ -z "${2}" ] && continue
52 [ -e "${2}" ] && continue
53 echo -n " [${2}]"
54 ln -s "${1}" "${2}"
55 done
56 echo " done."
57 exit "${?}"

  ViewVC Help
Powered by ViewVC 1.1.26