/[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.4 by ravilov, Wed Aug 22 11:43:59 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 8  do Line 11  do
11          chmod 777 "${i}"          chmod 777 "${i}"
12  done  done
13  echo " done."  echo " done."
 LINKS="`cat <<EOF  
 . edit  
 conditions.tpl templates/lifestyle.tpl  
 pgConditions.php inc/pgLifestyle.php  
 menuConditions.php inc/menuHome.php  
 menuLifestyle.php inc/menuHome.php  
 EOF  
 `"  
14  echo -n "Creating symlinks:"  echo -n "Creating symlinks:"
15  echo "${LINKS}" | while read line  echo "${LINKS}" | while read line
16  do  do
17          set -- ${line}          set -- ${line}
18            [ -z "${1}" ] && continue
19            [ -z "${2}" ] && continue
20          [ -e "${2}" ] && continue          [ -e "${2}" ] && continue
21          echo -n " [${2}]"          echo -n " [${2}]"
22          ln -s "${1}" "${2}"          ln -s "${1}" "${2}"

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

  ViewVC Help
Powered by ViewVC 1.1.26