freebsd-ports/astro/boinc-setiathome-enhanced/files/patch-_autosetup
Rene Ladan 40a43e8c8f * Update setiathome client to 6.08
* Remove astropulse client which is too old for the current work units

PR:		ports/138825
Submitted by:	rene
Approved by:	pav
Feature safe:	yes
2009-09-15 21:37:57 +00:00

13 lines
656 B
Text

Index: _autosetup
===================================================================
--- _autosetup (revision 429)
+++ _autosetup (working copy)
@@ -42,7 +42,7 @@
version="0";
fi
if [ -n "${version}" ]; then
- version=`echo $version | awk '{ for (i=1;i<=NF;i++) { split($i,j,"."); m=j[1]"."j[2] ; if ((m*1)>0) { print m ; break; } } }'`
+ version=`echo $version | awk '{ for (i=1;i<=NF;i++) { split($i,j,"."); m=j[1]"."j[2] ; if (m ~ /[0-9]+\.[0-9]+/) { print m ; break; } } }'`
if [ -z "$version" ]; then version=0; fi
success=`echo "$version" "$desired" | awk '{ if ($1 >= $2) { print "yes";} else {print "no";}} '`
else