/[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

Annotation of /fix.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Fri Aug 10 14:00:26 2001 UTC (17 years, 10 months ago) by ravilov
Branch: MAIN
Changes since 1.2: +1 -0 lines
File MIME type: application/x-sh
Fixed fix.sh

1 ravilov 1.1 #! /bin/sh
2     echo -n "Creating dirs:"
3     for i in img/news img/bolesti templates_c
4     do
5     [ -e "${i}" ] && continue
6     echo -n " [${i}]"
7     mkdir -p "${i}"
8     chmod 777 "${i}"
9     done
10     echo " done."
11 ravilov 1.2 LINKS="`cat <<EOF
12 ravilov 1.3 . edit
13 ravilov 1.2 temp.tpl templates/d_s.tpl
14     conditions.tpl templates/lifestyle.tpl
15     pgConditions.php inc/pgLifestyle.php
16     EOF
17     `"
18 ravilov 1.1 echo -n "Creating symlinks:"
19 ravilov 1.2 echo "${LINKS}" | while read line
20     do
21     set -- ${line}
22     [ -e "${2}" ] && continue
23     echo -n " [${2}]"
24     ln -s "${1}" "${2}"
25     done
26 ravilov 1.1 echo " done."
27     exit "${?}"

  ViewVC Help
Powered by ViewVC 1.1.26