[PC-BSD Commits] r4085 - pbibuild/modules/graphics/digikam/overlay-dir

svn at pcbsd.org svn at pcbsd.org
Wed Jun 10 11:29:08 PDT 2009


Author: kris
Date: 2009-06-10 11:29:08 -0700 (Wed, 10 Jun 2009)
New Revision: 4085

Modified:
   pbibuild/modules/graphics/digikam/overlay-dir/PBI.SetupScript.sh
Log:

Cleanup digikam install script



Modified: pbibuild/modules/graphics/digikam/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/graphics/digikam/overlay-dir/PBI.SetupScript.sh	2009-06-10 18:24:04 UTC (rev 4084)
+++ pbibuild/modules/graphics/digikam/overlay-dir/PBI.SetupScript.sh	2009-06-10 18:29:08 UTC (rev 4085)
@@ -27,13 +27,21 @@
 cd /home
 for i in `ls`
 do
-   if [ -d "${i}/.kde" -o -d "${i}/.kde4" ]
+
+if [ -e "${i}/.kde4" ]
+then
+   KDEDIR="${i}/.kde4"
+else
+   KDEDIR="${i}/.kde"
+fi
+
+   if [ -d "${KDEDIR}/share/config" ]
    then
-     if [ ! -e "${i}/.kde/share/config/digikamrc" ]
+     if [ ! -e "${KDEDIR}/share/config/digikamrc" ]
      then
-       mkdir -p ${i}/.kde/share/config >/dev/null 2>/dev/null
-       cp /Programs/${PROGDIR}/digikamrc ${i}/.kde/share/config/
-       chown -R ${i}:${i} ${i}/.kde
+       mkdir -p ${KDEDIR}/share/config >/dev/null 2>/dev/null
+       cp /Programs/${PROGDIR}/digikamrc ${KDEDIR}/share/config/
+       chown -R ${i}:${i} ${KDEDIR}/share/config/digikamrc
      fi
    fi
 done



More information about the Commits mailing list