/[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.1 by ravilov, Wed Aug 8 12:58:08 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 9  do Line 34  do
34  done  done
35  echo " done."  echo " done."
36  echo -n "Creating symlinks:"  echo -n "Creating symlinks:"
37  if [ ! -e "templates/d_s.tpl" ]  echo "${LINKS}" | while read line
38  then  do
39          echo -n " [templates/d_s.tpl]"          set -- ${line}
40          ln -s temp.tpl templates/d_s.tpl          [ -z "${1}" ] && continue
41  fi          [ -z "${2}" ] && continue
42  if [ ! -e "templates/lifestyle.tpl" ]          [ -e "${2}" ] && continue
43  then          echo -n " [${2}]"
44          echo -n " [templates/lifestyle.tpl]"          ln -s "${1}" "${2}"
45          ln -s conditions.tpl templates/lifestyle.tpl  done
 fi  
 if [ ! -e "inc/pgLifestyle.php" ]  
 then  
         echo -n " [inc/pgLifestyle.php]"  
         ln -s pgConditions.php inc/pgLifestyle.php  
 fi  
46  echo " done."  echo " done."
47  exit "${?}"  exit "${?}"

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

  ViewVC Help
Powered by ViewVC 1.1.26