[rkward-cvs] SF.net SVN: rkward-code:[4674] trunk/rkward/macports/update_bundle.sh

m-eik at users.sf.net m-eik at users.sf.net
Fri Apr 5 16:18:42 UTC 2013


Revision: 4674
          http://sourceforge.net/p/rkward/code/4674
Author:   m-eik
Date:     2013-04-05 16:18:41 +0000 (Fri, 05 Apr 2013)
Log Message:
-----------
MacPorts: fixing the script

Modified Paths:
--------------
    trunk/rkward/macports/update_bundle.sh

Modified: trunk/rkward/macports/update_bundle.sh
===================================================================
--- trunk/rkward/macports/update_bundle.sh	2013-04-05 16:17:20 UTC (rev 4673)
+++ trunk/rkward/macports/update_bundle.sh	2013-04-05 16:18:41 UTC (rev 4674)
@@ -238,8 +238,12 @@
     # this is to fix some kind of a race condition: if RKWard gets installed before R-framework,
     # it wil create a directory which must actually be a symlink in order for R to run! so we'll
     # move RKWard's own packages before bundling it
-    RKWDSTROOT=${MPTINST}/var/macports/build/_opt_ports_kde_rkward/${PTARGET}/work/destroot
+    RKWDSTROOT=${MPTINST}/var/macports/build/_opt_ports_kde_${PTARGET}/${PTARGET}/work/destroot
     RKWRFWPATH=${RKWDSTROOT}/${MPTINST}/Library/Frameworks/R.framework
+    if ! [ -d ${RKWRFWPATH} ] ; then
+      echo "cannot find R.framework, bogus path? ${RKWRFWPATH}"
+      exit 1
+    fi
     RFWPATH=${MPTINST}/var/macports/build/${BLDPRFX}math_R-framework/R-framework/work/destroot
     RVERSPATH=${RFWPATH}/${MPTINST}/Library/Frameworks/R.framework/Versions
     # this variable will hold the R version of the installed framework





More information about the rkward-tracker mailing list