1 |
#! /bin/sh |
#! /bin/sh |
2 |
|
DIRS="img/news img/bolesti img/autori pdf/medicus pdf/inf_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 |
|
../fonts med/fonts |
15 |
|
../js med/js |
16 |
|
../img/news med/img/news |
17 |
|
../img/bolesti med/img/bolesti |
18 |
|
../img/autori med/img/autori |
19 |
|
../../img/banneri med/img/banneri |
20 |
|
../../templates/edit.tpl med/templates/edit.tpl |
21 |
|
../../templates/show.tpl med/templates/show.tpl |
22 |
|
../../templates/search.tpl med/templates/search.tpl |
23 |
|
../../templates/links.tpl med/templates/links.tpl |
24 |
|
../../templates/wrapper.tpl med/templates/wrapper.tpl |
25 |
|
../../templates/print.tpl med/templates/print.tpl |
26 |
|
../../templates/footer.tpl med/templates/footer.tpl |
27 |
|
../../templates/author.tpl med/templates/author.tpl |
28 |
|
../../templates/highlight.tpl med/templates/highlight.tpl |
29 |
|
../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl |
30 |
|
../index.php med/index.php |
31 |
|
../legal.php med/legal.php |
32 |
|
../stil.php med/stil.php |
33 |
|
../levels.css med/levels.css |
34 |
|
../verdanab.ttf med/verdanab.ttf |
35 |
|
../button.php med/button.php" |
36 |
|
# ------------- |
37 |
|
cd "`dirname "${0}"`" |
38 |
echo -n "Creating dirs:" |
echo -n "Creating dirs:" |
39 |
for i in img/news img/bolesti templates_c |
for i in ${DIRS} |
40 |
do |
do |
41 |
[ -e "${i}" ] && continue |
[ -e "${i}" ] && continue |
42 |
echo -n " [${i}]" |
echo -n " [${i}]" |
44 |
chmod 777 "${i}" |
chmod 777 "${i}" |
45 |
done |
done |
46 |
echo " done." |
echo " done." |
|
LINKS="`cat <<EOF |
|
|
temp.tpl templates/d_s.tpl |
|
|
conditions.tpl templates/lifestyle.tpl |
|
|
pgConditions.php inc/pgLifestyle.php |
|
|
EOF |
|
|
`" |
|
47 |
echo -n "Creating symlinks:" |
echo -n "Creating symlinks:" |
48 |
echo "${LINKS}" | while read line |
echo "${LINKS}" | while read line |
49 |
do |
do |
50 |
set -- ${line} |
set -- ${line} |
51 |
|
[ -z "${1}" ] && continue |
52 |
|
[ -z "${2}" ] && continue |
53 |
[ -e "${2}" ] && continue |
[ -e "${2}" ] && continue |
54 |
echo -n " [${2}]" |
echo -n " [${2}]" |
55 |
ln -s "${1}" "${2}" |
ln -s "${1}" "${2}" |