[40612] contrib/select/select.sh

raimue at macports.org raimue at macports.org
Wed Oct 8 05:06:53 PDT 2008


Revision: 40612
          http://trac.macports.org/changeset/40612
Author:   raimue at macports.org
Date:     2008-10-08 05:06:51 -0700 (Wed, 08 Oct 2008)
Log Message:
-----------
contrib/select:
Remove unused variable "empty"

Modified Paths:
--------------
    contrib/select/select.sh

Modified: contrib/select/select.sh
===================================================================
--- contrib/select/select.sh	2008-10-08 11:40:45 UTC (rev 40611)
+++ contrib/select/select.sh	2008-10-08 12:06:51 UTC (rev 40612)
@@ -127,7 +127,6 @@
 	# count the number of errors
 	local error=0
 	local i=1
-	local empty=0
 	echo "Selecting version \"${1}\" for ${NAME}"
 	if [ 1 == ${noexec} ]; then
 		echo "echo ${1} >| ${SELECTEDVERSION}"
@@ -137,7 +136,6 @@
 	for target in $(cat ${CONFPATH}/base); do
 		src=$(head -n ${i} ${CONFPATH}/${1} | tail -n 1)
 
-		empty=0
 		# test if line starts with '-' -> dont link, just rm original
 		if [ "-" == $(echo ${src} | colrm 2) ]; then
 			# source is unavailable for this file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081008/1ae073ea/attachment.html 


More information about the macports-changes mailing list