/[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.4 - (hide annotations)
Wed Aug 22 11:43:59 2001 UTC (17 years, 9 months ago) by ravilov
Branch: MAIN
Changes since 1.3: +2 -1 lines
File MIME type: application/x-sh
Added the menu on the left.

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 conditions.tpl templates/lifestyle.tpl
14     pgConditions.php inc/pgLifestyle.php
15 ravilov 1.4 menuConditions.php inc/menuHome.php
16     menuLifestyle.php inc/menuHome.php
17 ravilov 1.2 EOF
18     `"
19 ravilov 1.1 echo -n "Creating symlinks:"
20 ravilov 1.2 echo "${LINKS}" | while read line
21     do
22     set -- ${line}
23     [ -e "${2}" ] && continue
24     echo -n " [${2}]"
25     ln -s "${1}" "${2}"
26     done
27 ravilov 1.1 echo " done."
28     exit "${?}"

  ViewVC Help
Powered by ViewVC 1.1.26