[40616] contrib/select/select.sh
raimue at macports.org
raimue at macports.org
Wed Oct 8 06:57:52 PDT 2008
Revision: 40616
http://trac.macports.org/changeset/40616
Author: raimue at macports.org
Date: 2008-10-08 06:57:50 -0700 (Wed, 08 Oct 2008)
Log Message:
-----------
contrib/select:
Add a special "none" target to delete all symlinks
Modified Paths:
--------------
contrib/select/select.sh
Modified: contrib/select/select.sh
===================================================================
--- contrib/select/select.sh 2008-10-08 13:25:57 UTC (rev 40615)
+++ contrib/select/select.sh 2008-10-08 13:57:50 UTC (rev 40616)
@@ -134,7 +134,11 @@
echo ${1} >| ${SELECTEDVERSION}
fi
for target in $(cat ${CONFPATH}/base); do
- src=$(head -n ${i} ${CONFPATH}/${1} | tail -n 1)
+ if [ "${1}" == "none" ]; then
+ src="-"
+ else
+ src=$(head -n ${i} ${CONFPATH}/${1} | tail -n 1)
+ fi
# test if line starts with '-' -> dont link, just rm original
if [ "-" == $(echo ${src} | colrm 2) ]; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081008/19500c66/attachment.html
More information about the macports-changes
mailing list