/[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.6 by ravilov, Wed Sep 19 12:23:56 2001 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2    DIRS="img/news img/bolesti img/autori pdf 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    ../pdf med/pdf
10    ../inc med/inc
11    ../fonts med/fonts
12    ../js med/js
13    ../img/news med/img/news
14    ../img/bolesti med/img/bolesti
15    ../img/autori med/img/autori
16    ../../templates/edit.tpl med/templates/edit.tpl
17    ../../templates/links.tpl med/templates/links.tpl
18    ../../templates/wrapper.tpl med/templates/wrapper.tpl
19    ../../templates/print.tpl med/templates/print.tpl
20    ../../templates/footer.tpl med/templates/print.tpl
21    ../index.php med/index.php
22    ../legal.php med/legal.php
23    ../verdanab.ttf med/verdanab.ttf
24    ../button.php med/button.php"
25    # -------------
26    cd "`dirname "${0}"`"
27  echo -n "Creating dirs:"  echo -n "Creating dirs:"
28  for i in img/news img/bolesti templates_c  for i in ${DIRS}
29  do  do
30          [ -e "${i}" ] && continue          [ -e "${i}" ] && continue
31          echo -n " [${i}]"          echo -n " [${i}]"
# Line 8  do Line 33  do
33          chmod 777 "${i}"          chmod 777 "${i}"
34  done  done
35  echo " done."  echo " done."
 LINKS="`cat <<EOF  
 temp.tpl templates/d_s.tpl  
 conditions.tpl templates/lifestyle.tpl  
 pgConditions.php inc/pgLifestyle.php  
 EOF  
 `"  
36  echo -n "Creating symlinks:"  echo -n "Creating symlinks:"
37  echo "${LINKS}" | while read line  echo "${LINKS}" | while read line
38  do  do
39          set -- ${line}          set -- ${line}
40            [ -z "${1}" ] && continue
41            [ -z "${2}" ] && continue
42          [ -e "${2}" ] && continue          [ -e "${2}" ] && continue
43          echo -n " [${2}]"          echo -n " [${2}]"
44          ln -s "${1}" "${2}"          ln -s "${1}" "${2}"

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

  ViewVC Help
Powered by ViewVC 1.1.26