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

Diff of /fix.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by dpavlin, Tue Sep 25 23:17:33 2001 UTC revision 1.17 by ravilov, Tue Oct 16 13:07:03 2001 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  DIRS="img/news img/bolesti img/autori pdf/medicus pdf/inf_glasnik templates_c med/templates_c"  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  LINKS=". edit  DIRS2="edit med/edit"
4  . med/edit  LINKS="../index.html img/bolesti/index.html
 ../index.html img/bolesti/index.html  
5  ../index.html img/autori/index.html  ../index.html img/autori/index.html
6    ../index.html img/autori_cv/index.html
7  ../index.html img/news/index.html  ../index.html img/news/index.html
8  ../img/index.html pdf/index.html  ../img/index.html pdf/index.html
9  ../index.html pdf/medicus/index.html  ../index.html pdf/medicus/index.html
# Line 11  LINKS=". edit Line 11  LINKS=". edit
11  stanja.tpl templates/lifestyle.tpl  stanja.tpl templates/lifestyle.tpl
12  ../pdf med/pdf  ../pdf med/pdf
13  ../inc med/inc  ../inc med/inc
 ../fonts med/fonts  
14  ../js med/js  ../js med/js
15  ../img/news med/img/news  ../../img/news med/img/news
16  ../img/bolesti med/img/bolesti  ../../img/banner-title.gif med/img/banner-title.gif
17  ../img/autori med/img/autori  ../../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/show-0.gif med/img/show-0.gif
24    ../../img/show-1.gif med/img/show-1.gif
25    ../../img/mali.vademecum.gif med/img/mali.vademecum.gif
26    ../../img/pio.gif med/img/pio.gif
27    ../../img/chat.gif med/img/chat.gif
28    ../../img/procitajclanak.gif med/img/procitajclanak.gif
29    ../../img/procitaj01.gif med/img/procitaj01.gif
30    ../../img/procitaj02.gif med/img/procitaj02.gif
31    ../../img/procitaj03.gif med/img/procitaj03.gif
32    ../../img/bolesti med/img/bolesti
33    ../../img/autori med/img/autori
34    ../../img/autori_cv med/img/autori_cv
35  ../../img/banneri med/img/banneri  ../../img/banneri med/img/banneri
36    ../../img/vademecum med/img/vademecum
37  ../../templates/edit.tpl med/templates/edit.tpl  ../../templates/edit.tpl med/templates/edit.tpl
38  ../../templates/show.tpl med/templates/show.tpl  ../../templates/show.tpl med/templates/show.tpl
39  ../../templates/search.tpl med/templates/search.tpl  ../../templates/search.tpl med/templates/search.tpl
# Line 27  stanja.tpl templates/lifestyle.tpl Line 44  stanja.tpl templates/lifestyle.tpl
44  ../../templates/author.tpl med/templates/author.tpl  ../../templates/author.tpl med/templates/author.tpl
45  ../../templates/highlight.tpl med/templates/highlight.tpl  ../../templates/highlight.tpl med/templates/highlight.tpl
46  ../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl  ../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl
47    ../../templates/qa.tpl med/templates/qa.tpl
48    ../../templates/arhiva.tpl med/templates/arhiva.tpl
49    ../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl
50    ../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl
51    ../favicon.ico med/favicon.ico
52  ../index.php med/index.php  ../index.php med/index.php
53    ../pdf.php med/pdf.php
54  ../legal.php med/legal.php  ../legal.php med/legal.php
55  ../stil.php med/stil.php  ../stil.php med/stil.php
56  ../levels.css med/levels.css  ../levels.css med/levels.css
57  ../verdanab.ttf med/verdanab.ttf  ../../edit/.htaccess med/edit/.htaccess"
 ../button.php med/button.php"  
58  # -------------  # -------------
59  cd "`dirname "${0}"`"  cd "`dirname "${0}"`"
60  echo -n "Creating dirs:"  echo -n "Creating dirs:"
# Line 42  do Line 64  do
64          echo -n " [${i}]"          echo -n " [${i}]"
65          mkdir -p "${i}"          mkdir -p "${i}"
66          chmod 777 "${i}"          chmod 777 "${i}"
67            chmod g+s "${i}"
68    done
69    for i in ${DIRS2}
70    do
71            [ -e "${i}" ] && continue
72            echo -n " [${i}]"
73            mkdir -p "${i}"
74            (
75                    cd "${i}"
76                    for j in ../*
77                    do
78                            [ "`basename "${j}"`" = "CVS" ] && continue
79                            [ -e "`basename "${j}"`" ] || ln -s "${j}"
80                    done
81                    rm -f "${i}"
82            )
83  done  done
84  echo " done."  echo " done."
85  echo -n "Creating symlinks:"  echo -n "Creating symlinks:"

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.26