1 |
#! /bin/sh |
#! /bin/sh |
2 |
|
DIRS="img/news img/bolesti img/autori pdf/medicus pdf/inf_glasnik pdf/farm_glasnik templates_c med/templates_c" |
3 |
|
LINKS=". edit |
4 |
|
. med/edit |
5 |
|
../index.html img/bolesti/index.html |
6 |
|
../index.html img/autori/index.html |
7 |
|
../index.html img/news/index.html |
8 |
|
../img/index.html pdf/index.html |
9 |
|
../index.html pdf/medicus/index.html |
10 |
|
../index.html pdf/inf_glasnik/index.html |
11 |
|
stanja.tpl templates/lifestyle.tpl |
12 |
|
../pdf med/pdf |
13 |
|
../inc med/inc |
14 |
|
../js med/js |
15 |
|
../../img/news med/img/news |
16 |
|
../../img/banner-title.gif med/img/banner-title.gif |
17 |
|
../../img/pisite.gif med/img/pisite.gif |
18 |
|
../../img/knjiznica01.gif med/img/hzzo.gif |
19 |
|
../../img/R-black.gif med/img/R-black.gif |
20 |
|
../../img/R-lgray.gif med/img/R-lgray.gif |
21 |
|
../../img/R-dgray.gif med/img/R-dgray.gif |
22 |
|
../../img/R-white.gif med/img/R-white.gif |
23 |
|
../../img/show-0.gif med/img/show-0.gif |
24 |
|
../../img/show-1.gif med/img/show-1.gif |
25 |
|
../../img/mali.vademecum.gif med/img/mali.vademecum.gif |
26 |
|
../../img/pio.gif med/img/pio.gif |
27 |
|
../../img/chat.gif med/img/chat.gif |
28 |
|
../../img/procitajclanak.gif med/img/procitajclanak.gif |
29 |
|
../../img/procitaj01.gif med/img/procitaj01.gif |
30 |
|
../../img/procitaj02.gif med/img/procitaj02.gif |
31 |
|
../../img/procitaj03.gif med/img/procitaj03.gif |
32 |
|
../../img/bolesti med/img/bolesti |
33 |
|
../../img/autori med/img/autori |
34 |
|
../../img/banneri med/img/banneri |
35 |
|
../../img/vademecum med/img/vademecum |
36 |
|
../../templates/edit.tpl med/templates/edit.tpl |
37 |
|
../../templates/show.tpl med/templates/show.tpl |
38 |
|
../../templates/search.tpl med/templates/search.tpl |
39 |
|
../../templates/links.tpl med/templates/links.tpl |
40 |
|
../../templates/wrapper.tpl med/templates/wrapper.tpl |
41 |
|
../../templates/print.tpl med/templates/print.tpl |
42 |
|
../../templates/footer.tpl med/templates/footer.tpl |
43 |
|
../../templates/author.tpl med/templates/author.tpl |
44 |
|
../../templates/highlight.tpl med/templates/highlight.tpl |
45 |
|
../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl |
46 |
|
../../templates/qa.tpl med/templates/qa.tpl |
47 |
|
../../templates/arhiva.tpl med/templates/arhiva.tpl |
48 |
|
../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl |
49 |
|
../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl |
50 |
|
../index.php med/index.php |
51 |
|
../pdf.php med/pdf.php |
52 |
|
../legal.php med/legal.php |
53 |
|
../stil.php med/stil.php |
54 |
|
../levels.css med/levels.css" |
55 |
|
# ------------- |
56 |
|
cd "`dirname "${0}"`" |
57 |
echo -n "Creating dirs:" |
echo -n "Creating dirs:" |
58 |
for i in img/news img/bolesti templates_c |
for i in ${DIRS} |
59 |
do |
do |
60 |
[ -e "${i}" ] && continue |
[ -e "${i}" ] && continue |
61 |
echo -n " [${i}]" |
echo -n " [${i}]" |
63 |
chmod 777 "${i}" |
chmod 777 "${i}" |
64 |
done |
done |
65 |
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 |
|
|
`" |
|
66 |
echo -n "Creating symlinks:" |
echo -n "Creating symlinks:" |
67 |
echo "${LINKS}" | while read line |
echo "${LINKS}" | while read line |
68 |
do |
do |
69 |
set -- ${line} |
set -- ${line} |
70 |
|
[ -z "${1}" ] && continue |
71 |
|
[ -z "${2}" ] && continue |
72 |
[ -e "${2}" ] && continue |
[ -e "${2}" ] && continue |
73 |
echo -n " [${2}]" |
echo -n " [${2}]" |
74 |
ln -s "${1}" "${2}" |
ln -s "${1}" "${2}" |