1 |
#! /bin/sh |
#! /bin/sh |
2 |
DIRS="img/news img/bolesti img/autori pdf/medicus pdf/inf_glasnik templates_c med/templates_c" |
DIRS="img/news img/bolesti img/autori 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/news/index.html |
../index.html img/news/index.html |
7 |
../img/index.html pdf/index.html |
../img/index.html pdf/index.html |
19 |
../../img/R-lgray.gif med/img/R-lgray.gif |
../../img/R-lgray.gif med/img/R-lgray.gif |
20 |
../../img/R-dgray.gif med/img/R-dgray.gif |
../../img/R-dgray.gif med/img/R-dgray.gif |
21 |
../../img/R-white.gif med/img/R-white.gif |
../../img/R-white.gif med/img/R-white.gif |
22 |
|
../../img/show-0.gif med/img/show-0.gif |
23 |
|
../../img/show-1.gif med/img/show-1.gif |
24 |
../../img/mali.vademecum.gif med/img/mali.vademecum.gif |
../../img/mali.vademecum.gif med/img/mali.vademecum.gif |
25 |
../../img/pio.gif med/img/pio.gif |
../../img/pio.gif med/img/pio.gif |
26 |
../../img/chat.gif med/img/chat.gif |
../../img/chat.gif med/img/chat.gif |
43 |
../../templates/highlight.tpl med/templates/highlight.tpl |
../../templates/highlight.tpl med/templates/highlight.tpl |
44 |
../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl |
../../templates/mnogosearch.tpl med/templates/mnogosearch.tpl |
45 |
../../templates/qa.tpl med/templates/qa.tpl |
../../templates/qa.tpl med/templates/qa.tpl |
46 |
|
../../templates/arhiva.tpl med/templates/arhiva.tpl |
47 |
../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl |
../../templates/knjiznica-vademecum.tpl med/templates/vademecum.tpl |
48 |
../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl |
../../templates/knjiznica-lijekovi.tpl med/templates/lijekovi.tpl |
49 |
../index.php med/index.php |
../index.php med/index.php |
51 |
../legal.php med/legal.php |
../legal.php med/legal.php |
52 |
../stil.php med/stil.php |
../stil.php med/stil.php |
53 |
../levels.css med/levels.css |
../levels.css med/levels.css |
54 |
../button.php med/button.php" |
../../edit/.htaccess med/edit/.htaccess" |
55 |
# ------------- |
# ------------- |
56 |
cd "`dirname "${0}"`" |
cd "`dirname "${0}"`" |
57 |
echo -n "Creating dirs:" |
echo -n "Creating dirs:" |
62 |
mkdir -p "${i}" |
mkdir -p "${i}" |
63 |
chmod 777 "${i}" |
chmod 777 "${i}" |
64 |
done |
done |
65 |
|
for i in ${DIRS2} |
66 |
|
do |
67 |
|
[ -e "${i}" ] && continue |
68 |
|
echo -n " [${i}]" |
69 |
|
mkdir -p "${i}" |
70 |
|
( |
71 |
|
cd "${i}" |
72 |
|
for j in ../* |
73 |
|
do |
74 |
|
[ "`basename "${j}"`" = "CVS" ] && continue |
75 |
|
[ -e "`basename "${j}"`" ] || ln -s "${j}" |
76 |
|
done |
77 |
|
rm -f "${i}" |
78 |
|
) |
79 |
|
done |
80 |
echo " done." |
echo " done." |
81 |
echo -n "Creating symlinks:" |
echo -n "Creating symlinks:" |
82 |
echo "${LINKS}" | while read line |
echo "${LINKS}" | while read line |