/[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.2 by ravilov, Fri Aug 10 13:59:06 2001 UTC revision 1.16 by ravilov, Fri Oct 12 09:22:02 2001 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2    DIRS="img/news img/bolesti img/autori pdf/medicus pdf/inf_glasnik pdf/farm_glasnik templates_c med/templates_c"
3    DIRS2="edit med/edit"
4    LINKS="../index.html img/bolesti/index.html
5    ../index.html img/autori/index.html
6    ../index.html img/news/index.html
7    ../img/index.html pdf/index.html
8    ../index.html pdf/medicus/index.html
9    ../index.html pdf/inf_glasnik/index.html
10    stanja.tpl templates/lifestyle.tpl
11    ../pdf med/pdf
12    ../inc med/inc
13    ../js med/js
14    ../../img/news med/img/news
15    ../../img/banner-title.gif med/img/banner-title.gif
16    ../../img/pisite.gif med/img/pisite.gif
17    ../../img/knjiznica01.gif med/img/hzzo.gif
18    ../../img/R-black.gif med/img/R-black.gif
19    ../../img/R-lgray.gif med/img/R-lgray.gif
20    ../../img/R-dgray.gif med/img/R-dgray.gif
21    ../../img/R-white.gif med/img/R-white.gif
22    ../../img/show-0.gif med/img/show-0.gif
23    ../../img/show-1.gif med/img/show-1.gif
24    ../../img/mali.vademecum.gif med/img/mali.vademecum.gif
25    ../../img/pio.gif med/img/pio.gif
26    ../../img/chat.gif med/img/chat.gif
27    ../../img/procitajclanak.gif med/img/procitajclanak.gif
28    ../../img/procitaj01.gif med/img/procitaj01.gif
29    ../../img/procitaj02.gif med/img/procitaj02.gif
30    ../../img/procitaj03.gif med/img/procitaj03.gif
31    ../../img/bolesti med/img/bolesti
32    ../../img/autori med/img/autori
33    ../../img/banneri med/img/banneri
34    ../../img/vademecum med/img/vademecum
35    ../../templates/edit.tpl med/templates/edit.tpl
36    ../../templates/show.tpl med/templates/show.tpl
37    ../../templates/search.tpl med/templates/search.tpl
38    ../../templates/links.tpl med/templates/links.tpl
39    ../../templates/wrapper.tpl med/templates/wrapper.tpl
40    ../../templates/print.tpl med/templates/print.tpl
41    ../../templates/footer.tpl med/templates/footer.tpl
42    ../../templates/author.tpl med/templates/author.tpl
43    ../../templates/highlight.tpl med/templates/highlight.tpl
44    ../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl
45    ../../templates/qa.tpl med/templates/qa.tpl
46    ../../templates/arhiva.tpl med/templates/arhiva.tpl
47    ../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl
48    ../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl
49    ../index.php med/index.php
50    ../pdf.php med/pdf.php
51    ../legal.php med/legal.php
52    ../stil.php med/stil.php
53    ../levels.css med/levels.css
54    ../../edit/.htaccess med/edit/.htaccess"
55    # -------------
56    cd "`dirname "${0}"`"
57  echo -n "Creating dirs:"  echo -n "Creating dirs:"
58  for i in img/news img/bolesti templates_c  for i in ${DIRS}
59  do  do
60          [ -e "${i}" ] && continue          [ -e "${i}" ] && continue
61          echo -n " [${i}]"          echo -n " [${i}]"
62          mkdir -p "${i}"          mkdir -p "${i}"
63          chmod 777 "${i}"          chmod 777 "${i}"
64  done  done
65    for i in ${DIRS2}
66    do
67            [ -e "${i}" ] && continue
68            echo -n " [${i}]"
69            mkdir -p "${i}"
70            (
71                    cd "${i}"
72                    for j in ../*
73                    do
74                            [ "`basename "${j}"`" = "CVS" ] && continue
75                            [ -e "`basename "${j}"`" ] || ln -s "${j}"
76                    done
77                    rm -f "${i}"
78            )
79    done
80  echo " done."  echo " done."
 LINKS="`cat <<EOF  
 temp.tpl templates/d_s.tpl  
 conditions.tpl templates/lifestyle.tpl  
 pgConditions.php inc/pgLifestyle.php  
 EOF  
 `"  
81  echo -n "Creating symlinks:"  echo -n "Creating symlinks:"
82  echo "${LINKS}" | while read line  echo "${LINKS}" | while read line
83  do  do
84          set -- ${line}          set -- ${line}
85            [ -z "${1}" ] && continue
86            [ -z "${2}" ] && continue
87          [ -e "${2}" ] && continue          [ -e "${2}" ] && continue
88          echo -n " [${2}]"          echo -n " [${2}]"
89          ln -s "${1}" "${2}"          ln -s "${1}" "${2}"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.26