2 if [ `id -u` = 0 ]; then
4 kde_dir
=`kde-config --prefix`
6 if test -z "$kde_dir"; then
10 if test -n "$KDEDIR";then
15 kde_dir
=`kde-config --prefix`
17 if test -z "$kde_dir"; then
21 if test -n "$KDEDIR";then
26 echo "Install dir [${1}${kde_dir}/share/apps/quanta/doc]:"
28 newdir
="${1}${kde_dir}/share/apps/quanta/doc";
31 if ! [ -d $newdir ]; then
33 for filename
in $newdir
36 if [ "$filename" == "" ] ; then continue;
37 else currPath
=$currPath/$filename;
39 if [ -d "$currPath" ]; then continue;
47 cp -R php php.docrc
"$newdir" && echo "done"