/[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.5 - (hide annotations)
Thu Aug 30 16:35:36 2001 UTC (17 years, 9 months ago) by ravilov
Branch: MAIN
Changes since 1.4: +6 -9 lines
File MIME type: application/x-sh
Started major site rearrangement. Minor bugfixes.

1 ravilov 1.1 #! /bin/sh
2 ravilov 1.5 DIRS="img/news img/bolesti templates_c"
3     LINKS=". edit"
4     # -------------
5 ravilov 1.1 echo -n "Creating dirs:"
6 ravilov 1.5 for i in ${DIRS}
7 ravilov 1.1 do
8     [ -e "${i}" ] && continue
9     echo -n " [${i}]"
10     mkdir -p "${i}"
11     chmod 777 "${i}"
12     done
13     echo " done."
14     echo -n "Creating symlinks:"
15 ravilov 1.2 echo "${LINKS}" | while read line
16     do
17     set -- ${line}
18 ravilov 1.5 [ -z "${1}" ] && continue
19     [ -z "${2}" ] && continue
20 ravilov 1.2 [ -e "${2}" ] && continue
21     echo -n " [${2}]"
22     ln -s "${1}" "${2}"
23     done
24 ravilov 1.1 echo " done."
25     exit "${?}"

  ViewVC Help
Powered by ViewVC 1.1.26