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

m-eik at users.sf.net m-eik at users.sf.net
Tue Jan 15 16:03:00 UTC 2013


Revision: 4496
          http://sourceforge.net/p/rkward/code/4496
Author:   m-eik
Date:     2013-01-15 16:02:59 +0000 (Tue, 15 Jan 2013)
Log Message:
-----------
MacPorts: updated bundle script

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

Modified: trunk/rkward/macports/update_bundle.sh
===================================================================
--- trunk/rkward/macports/update_bundle.sh	2013-01-15 16:02:11 UTC (rev 4495)
+++ trunk/rkward/macports/update_bundle.sh	2013-01-15 16:02:59 UTC (rev 4496)
@@ -13,6 +13,7 @@
 if [[ $1 == "" ]] ; then
  echo "Usage: update_bundle.sh OPTION
           OPTIONS:
+           -D (build target rkward instead of rkward-devel)
            -f (full -- all of the below)
            -p (update macports, remove inactive)
            -r (update port ${PTARGET})
@@ -23,8 +24,9 @@
 fi
 
 # get the options
-while getopts ":fprmscx" OPT; do
+while getopts ":Dfprmscx" OPT; do
   case $OPT in
+    D) PTARGET=rkward >&2 ;;
     f)
        UPMPORTS=TRUE >&2
        UPRKWARD=TRUE >&2
@@ -66,8 +68,11 @@
 
 # remove previous installation and its build left-overs
 if [[ $UPRKWARD ]] ; then
-  sudo port uninstall $PTARGET
-  sudo port clean $PTARGET
+  # make sure each instance of previous RKWard installations is removed first
+  sudo port uninstall rkward
+  sudo port uninstall rkward-devel
+  sudo port clean rkward
+  sudo port clean rkward-devel
   # build and install recent version
   sudo port -v install $PTARGET
 fi





More information about the rkward-tracker mailing list