Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > ebb1914cf182a88528b4547490db1dd8 > files > 337

kdewebdev-quanta-doc-3.5.9-2mdv2008.1.x86_64.rpm

#!/bin/sh
kdedir=`kde-config --prefix`

if test -z "$kdedir"; then
 kdedir=$KDEDIR
 if ! test -n "$KDEDIR";then
   kdedir="/opt/kde3"
 fi
 kdehome=$KDEHOME
 if ! test -n "$KDEHOME" ;then
    kdehome="~/.kde"
 fi
fi

echo "======================================================================"
echo "   This script installs the MySQL5 documentation for Quanta+ into the "
echo " global ($kdedir/share/apps/quanta/doc/mysql5) or"
echo " local  ($kdehome/share/apps/quanta/doc/mysql5) documentation"
echo " directory, depending if root or a regular user runs the script."
echo "======================================================================"
echo

if  [ `id -u` = 0 ]; then

  kde_dir=`kde-config --prefix`

  if test -z "$kde_dir"; then
   kde_dir="/opt/kde"
  fi

  if test -n "$KDEDIR";then
    kde_dir="$KDEDIR"
  fi
else

  kde_dir=~/.kde
  
  if test -n "$KDEHOME" ;then
    kde_dir="$KDEHOME"
  fi
fi

echo "Install dir [${kde_dir}/share/apps/quanta/doc]:"
read newdir
if [ "$newdir"a = a ]; then newdir="${kde_dir}/share/apps/quanta/doc"; fi
echo "$newdir"
if ! test -d "$newdir"
then 
 mkdir $newdir
fi
cp -R mysql5 mysql5.docrc "$newdir" && echo "done"