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

Contents of /fix.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations)
Thu Aug 30 16:35:36 2001 UTC (22 years, 8 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 #! /bin/sh
2 DIRS="img/news img/bolesti templates_c"
3 LINKS=". edit"
4 # -------------
5 echo -n "Creating dirs:"
6 for i in ${DIRS}
7 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 echo "${LINKS}" | while read line
16 do
17 set -- ${line}
18 [ -z "${1}" ] && continue
19 [ -z "${2}" ] && continue
20 [ -e "${2}" ] && continue
21 echo -n " [${2}]"
22 ln -s "${1}" "${2}"
23 done
24 echo " done."
25 exit "${?}"

  ViewVC Help
Powered by ViewVC 1.1.26