[PC-BSD Commits] r3745 - in pbibuild/modules/codelite/overlay-dir: . bin

svn at pcbsd.org svn at pcbsd.org
Thu Apr 2 11:27:28 PST 2009


Author: kris
Date: 2009-04-02 12:27:28 -0700 (Thu, 02 Apr 2009)
New Revision: 3745

Modified:
   pbibuild/modules/codelite/overlay-dir/PBI.SetupScript.sh
   pbibuild/modules/codelite/overlay-dir/bin/codelite
Log:

Updated codelite a bit more, to just warn the user if the link is missing :P



Modified: pbibuild/modules/codelite/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/codelite/overlay-dir/PBI.SetupScript.sh	2009-04-02 19:22:51 UTC (rev 3744)
+++ pbibuild/modules/codelite/overlay-dir/PBI.SetupScript.sh	2009-04-02 19:27:28 UTC (rev 3745)
@@ -22,5 +22,7 @@
   ln -s /usr/local/lib/X11 /Programs/${PROGDIR}/lib/X11
 fi
 
+rm /usr/share/codelite >/dev/null 2>/dev/null
+ln -s /Programs/${PROGDIR}/share/codelite /usr/share/codelite
 
 echo "LAUNCHCLOSE: /Programs/bin/codelite"

Modified: pbibuild/modules/codelite/overlay-dir/bin/codelite
===================================================================
--- pbibuild/modules/codelite/overlay-dir/bin/codelite	2009-04-02 19:22:51 UTC (rev 3744)
+++ pbibuild/modules/codelite/overlay-dir/bin/codelite	2009-04-02 19:27:28 UTC (rev 3745)
@@ -5,7 +5,8 @@
 
 if [ ! -h "/usr/share/codelite" ]
 then
-   ln -fs /Programs/${PROGDIR}/share/codelite /usr/share/codelite
+   kdialog --error "Missing codelite internal link. Please re-install, or as root run # ln -s /Programs/${PROGDIR}/share/codelite /usr/share/codelite"
+   exit 2
 fi
 
 /Programs/${PROGDIR}/bin/CodeLite $@



More information about the Commits mailing list