/[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.5 by ravilov, Thu Aug 30 16:35:36 2001 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2    DIRS="img/news img/bolesti templates_c"
3    LINKS=". edit"
4    # -------------
5  echo -n "Creating dirs:"  echo -n "Creating dirs:"
6  for i in img/news img/bolesti templates_c  for i in ${DIRS}
7  do  do
8          [ -e "${i}" ] && continue          [ -e "${i}" ] && continue
9          echo -n " [${i}]"          echo -n " [${i}]"
# Line 9  do Line 12  do
12  done  done
13  echo " done."  echo " done."
14  echo -n "Creating symlinks:"  echo -n "Creating symlinks:"
15  if [ ! -e "templates/d_s.tpl" ]  echo "${LINKS}" | while read line
16  then  do
17          echo -n " [templates/d_s.tpl]"          set -- ${line}
18          ln -s temp.tpl templates/d_s.tpl          [ -z "${1}" ] && continue
19  fi          [ -z "${2}" ] && continue
20  if [ ! -e "templates/lifestyle.tpl" ]          [ -e "${2}" ] && continue
21  then          echo -n " [${2}]"
22          echo -n " [templates/lifestyle.tpl]"          ln -s "${1}" "${2}"
23          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  
24  echo " done."  echo " done."
25  exit "${?}"  exit "${?}"

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

  ViewVC Help
Powered by ViewVC 1.1.26