[rkward-cvs] SF.net SVN: rkward:[4274] trunk/rkward/macports/update_bundle.sh
m-eik at users.sourceforge.net
m-eik at users.sourceforge.net
Mon Jun 4 14:43:00 UTC 2012
Revision: 4274
http://rkward.svn.sourceforge.net/rkward/?rev=4274&view=rev
Author: m-eik
Date: 2012-06-04 14:43:00 +0000 (Mon, 04 Jun 2012)
Log Message:
-----------
update MacPorts bundle script to purge old source archives
Modified Paths:
--------------
trunk/rkward/macports/update_bundle.sh
Modified: trunk/rkward/macports/update_bundle.sh
===================================================================
--- trunk/rkward/macports/update_bundle.sh 2012-06-03 16:48:15 UTC (rev 4273)
+++ trunk/rkward/macports/update_bundle.sh 2012-06-04 14:43:00 UTC (rev 4274)
@@ -18,11 +18,12 @@
-r (update port ${PTARGET})
-m (create .mdmg of ${PTARGET})
-s (create sources .tar)
- -c (copy .mdmg and src.tar to ${LPUBDIR}, if created)"
+ -c (copy .mdmg and src.tar to ${LPUBDIR}, if created)
+ -x (completely!!! wipe \$MACPORTS/var/macports/distfiles)"
fi
# get the options
-while getopts ":fprmsc" OPT; do
+while getopts ":fprmscx" OPT; do
case $OPT in
f)
UPMPORTS=TRUE >&2
@@ -30,12 +31,14 @@
MAKEMDMD=TRUE >&2
MKSRCTAR=TRUE >&2
COPYMDMD=TRUE >&2
+ WIPEDSTF=TRUE >&2
;;
p) UPMPORTS=TRUE >&2 ;;
r) UPRKWARD=TRUE >&2 ;;
m) MAKEMDMD=TRUE >&2 ;;
s) MKSRCTAR=TRUE >&2 ;;
c) COPYMDMD=TRUE >&2 ;;
+ x) WIPEDSTF=TRUE >&2 ;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
@@ -47,6 +50,11 @@
esac
done
+# prepare for a clean installation, remove all cached sources
+if [[ $WIPEDSTF ]] ; then
+ sudo rm -rf ${MPTINST}/var/macports/distfiles/*
+fi
+
# update installed ports
if [[ $UPMPORTS ]] ; then
sudo port selfupdate
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list