/[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.11 by ravilov, Sat Sep 29 15:24:48 2001 UTC revision 1.19 by ravilov, Tue Oct 30 16:11:28 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    ../index.html img/kongresi/index.html
9  ../img/index.html pdf/index.html  ../img/index.html pdf/index.html
10  ../index.html pdf/medicus/index.html  ../index.html pdf/medicus/index.html
11  ../index.html pdf/inf_glasnik/index.html  ../index.html pdf/inf_glasnik/index.html
# Line 20  stanja.tpl templates/lifestyle.tpl Line 21  stanja.tpl templates/lifestyle.tpl
21  ../../img/R-lgray.gif med/img/R-lgray.gif  ../../img/R-lgray.gif med/img/R-lgray.gif
22  ../../img/R-dgray.gif med/img/R-dgray.gif  ../../img/R-dgray.gif med/img/R-dgray.gif
23  ../../img/R-white.gif med/img/R-white.gif  ../../img/R-white.gif med/img/R-white.gif
24    ../../img/show-0.gif med/img/show-0.gif
25    ../../img/show-1.gif med/img/show-1.gif
26  ../../img/mali.vademecum.gif med/img/mali.vademecum.gif  ../../img/mali.vademecum.gif med/img/mali.vademecum.gif
27  ../../img/pio.gif med/img/pio.gif  ../../img/pio.gif med/img/pio.gif
28  ../../img/chat.gif med/img/chat.gif  ../../img/chat.gif med/img/chat.gif
# Line 27  stanja.tpl templates/lifestyle.tpl Line 30  stanja.tpl templates/lifestyle.tpl
30  ../../img/procitaj01.gif med/img/procitaj01.gif  ../../img/procitaj01.gif med/img/procitaj01.gif
31  ../../img/procitaj02.gif med/img/procitaj02.gif  ../../img/procitaj02.gif med/img/procitaj02.gif
32  ../../img/procitaj03.gif med/img/procitaj03.gif  ../../img/procitaj03.gif med/img/procitaj03.gif
33    ../../img/viseotemi.gif med/img/viseotemi.gif
34  ../../img/bolesti med/img/bolesti  ../../img/bolesti med/img/bolesti
35    ../../img/kongresi med/img/kongresi
36  ../../img/autori med/img/autori  ../../img/autori med/img/autori
37    ../../img/autori_cv med/img/autori_cv
38  ../../img/banneri med/img/banneri  ../../img/banneri med/img/banneri
39  ../../img/vademecum med/img/vademecum  ../../img/vademecum med/img/vademecum
40  ../../templates/edit.tpl med/templates/edit.tpl  ../../templates/edit.tpl med/templates/edit.tpl
# Line 42  stanja.tpl templates/lifestyle.tpl Line 48  stanja.tpl templates/lifestyle.tpl
48  ../../templates/highlight.tpl med/templates/highlight.tpl  ../../templates/highlight.tpl med/templates/highlight.tpl
49  ../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl  ../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl
50  ../../templates/qa.tpl med/templates/qa.tpl  ../../templates/qa.tpl med/templates/qa.tpl
51    ../../templates/arhiva.tpl med/templates/arhiva.tpl
52    ../../templates/salji.tpl med/templates/salji.tpl
53  ../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl  ../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl
54  ../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl  ../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl
55    ../favicon.ico med/favicon.ico
56  ../index.php med/index.php  ../index.php med/index.php
57    ../autor.php med/autor.php
58  ../pdf.php med/pdf.php  ../pdf.php med/pdf.php
59  ../legal.php med/legal.php  ../legal.php med/legal.php
60  ../stil.php med/stil.php  ../stil.php med/stil.php
61  ../levels.css med/levels.css  ../levels.css med/levels.css
62  ../button.php med/button.php"  ../../edit/.htaccess med/edit/.htaccess"
63  # -------------  # -------------
64  cd "`dirname "${0}"`"  cd "`dirname "${0}"`"
65  echo -n "Creating dirs:"  echo -n "Creating dirs:"
# Line 59  do Line 69  do
69          echo -n " [${i}]"          echo -n " [${i}]"
70          mkdir -p "${i}"          mkdir -p "${i}"
71          chmod 777 "${i}"          chmod 777 "${i}"
72            chmod g+s "${i}"
73    done
74    for i in ${DIRS2}
75    do
76            if [ ! -e "${i}" ]
77            then
78                    echo -n " [${i}]"
79                    mkdir -p "${i}"
80            fi
81            (
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  done  done
91  echo " done."  echo " done."
92  echo -n "Creating symlinks:"  echo -n "Creating symlinks:"

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.26