updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / quanta-doc-php / install.sh
blobe7d1675558e5f35e7c6d9bf96a0c9057057908fe
2 if [ `id -u` = 0 ]; then
4 kde_dir=`kde-config --prefix`
6 if test -z "$kde_dir"; then
7 kde_dir="/opt/kde"
8 fi
10 if test -n "$KDEDIR";then
11 kde_dir="$KDEDIR"
13 else
15 kde_dir=`kde-config --prefix`
17 if test -z "$kde_dir"; then
18 kde_dir="/opt/kde"
21 if test -n "$KDEDIR";then
22 kde_dir="$KDEDIR"
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
32 IFS="/"
33 for filename in $newdir
35 IFS=""
36 if [ "$filename" == "" ] ; then continue;
37 else currPath=$currPath/$filename;
39 if [ -d "$currPath" ]; then continue;
40 else mkdir $currPath;
42 done
47 cp -R php php.docrc "$newdir" && echo "done"