/[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.15 by ravilov, Wed Oct 10 12:40:58 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"  DIRS="img/news img/bolesti img/autori 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/news/index.html  ../index.html img/news/index.html
7  ../img/index.html pdf/index.html  ../img/index.html pdf/index.html
# Line 51  stanja.tpl templates/lifestyle.tpl Line 50  stanja.tpl templates/lifestyle.tpl
50  ../pdf.php med/pdf.php  ../pdf.php med/pdf.php
51  ../legal.php med/legal.php  ../legal.php med/legal.php
52  ../stil.php med/stil.php  ../stil.php med/stil.php
53  ../levels.css med/levels.css"  ../levels.css med/levels.css
54    ../../edit/.htaccess med/edit/.htaccess"
55  # -------------  # -------------
56  cd "`dirname "${0}"`"  cd "`dirname "${0}"`"
57  echo -n "Creating dirs:"  echo -n "Creating dirs:"
# Line 62  do Line 62  do
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."
81  echo -n "Creating symlinks:"  echo -n "Creating symlinks:"
82  echo "${LINKS}" | while read line  echo "${LINKS}" | while read line

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

  ViewVC Help
Powered by ViewVC 1.1.26