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" |
DIRS="img/news img/bolesti img/autori img/autori_cv img/kongresi pdf/medicus pdf/inf_glasnik pdf/farm_glasnik templates_c med/templates_c" |
3 |
LINKS=". edit |
DIRS2="edit med/edit" |
4 |
. med/edit |
LINKS="../index.html img/bolesti/index.html |
|
../index.html img/bolesti/index.html |
|
5 |
../index.html img/autori/index.html |
../index.html img/autori/index.html |
6 |
|
../index.html img/autori_cv/index.html |
7 |
../index.html img/news/index.html |
../index.html img/news/index.html |
8 |
|
../index.html img/kongresi/index.html |
9 |
../img/index.html pdf/index.html |
../img/index.html pdf/index.html |
10 |
../index.html pdf/medicus/index.html |
../index.html pdf/medicus/index.html |
11 |
../index.html pdf/inf_glasnik/index.html |
../index.html pdf/inf_glasnik/index.html |
30 |
../../img/procitaj01.gif med/img/procitaj01.gif |
../../img/procitaj01.gif med/img/procitaj01.gif |
31 |
../../img/procitaj02.gif med/img/procitaj02.gif |
../../img/procitaj02.gif med/img/procitaj02.gif |
32 |
../../img/procitaj03.gif med/img/procitaj03.gif |
../../img/procitaj03.gif med/img/procitaj03.gif |
33 |
|
../../img/viseotemi.gif med/img/viseotemi.gif |
34 |
../../img/bolesti med/img/bolesti |
../../img/bolesti med/img/bolesti |
35 |
|
../../img/kongresi med/img/kongresi |
36 |
../../img/autori med/img/autori |
../../img/autori med/img/autori |
37 |
|
../../img/autori_cv med/img/autori_cv |
38 |
../../img/banneri med/img/banneri |
../../img/banneri med/img/banneri |
39 |
../../img/vademecum med/img/vademecum |
../../img/vademecum med/img/vademecum |
40 |
../../templates/edit.tpl med/templates/edit.tpl |
../../templates/edit.tpl med/templates/edit.tpl |
51 |
../../templates/arhiva.tpl med/templates/arhiva.tpl |
../../templates/arhiva.tpl med/templates/arhiva.tpl |
52 |
../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl |
../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl |
53 |
../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl |
../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl |
54 |
|
../favicon.ico med/favicon.ico |
55 |
../index.php med/index.php |
../index.php med/index.php |
56 |
|
../autor.php med/autor.php |
57 |
../pdf.php med/pdf.php |
../pdf.php med/pdf.php |
58 |
../legal.php med/legal.php |
../legal.php med/legal.php |
59 |
../stil.php med/stil.php |
../stil.php med/stil.php |
60 |
../levels.css med/levels.css" |
../levels.css med/levels.css |
61 |
|
../../edit/.htaccess med/edit/.htaccess" |
62 |
# ------------- |
# ------------- |
63 |
cd "`dirname "${0}"`" |
cd "`dirname "${0}"`" |
64 |
echo -n "Creating dirs:" |
echo -n "Creating dirs:" |
68 |
echo -n " [${i}]" |
echo -n " [${i}]" |
69 |
mkdir -p "${i}" |
mkdir -p "${i}" |
70 |
chmod 777 "${i}" |
chmod 777 "${i}" |
71 |
|
chmod g+s "${i}" |
72 |
|
done |
73 |
|
for i in ${DIRS2} |
74 |
|
do |
75 |
|
if [ ! -e "${i}" ] |
76 |
|
then |
77 |
|
echo -n " [${i}]" |
78 |
|
mkdir -p "${i}" |
79 |
|
fi |
80 |
|
( |
81 |
|
cd "${i}" |
82 |
|
for j in ../* |
83 |
|
do |
84 |
|
[ "`basename "${j}"`" = "CVS" ] && continue |
85 |
|
[ -e "`basename "${j}"`" ] || ln -s "${j}" |
86 |
|
done |
87 |
|
rm -f "${i}" |
88 |
|
) |
89 |
done |
done |
90 |
echo " done." |
echo " done." |
91 |
echo -n "Creating symlinks:" |
echo -n "Creating symlinks:" |