Ignore:
Timestamp:
Feb 8, 2005, 11:35:19 PM (15 years ago)
Author:
jberry
Message:

Better ant version parsing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/tomcat5/Portfile

    r10878 r10879  
    1 # $Id: Portfile,v 1.12 2005/02/08 23:27:36 jberry Exp $
     1# $Id: Portfile,v 1.13 2005/02/08 23:35:19 jberry Exp $
    22
    33PortSystem 1.0
     
    5555set tomcatgroup         www
    5656
     57#
    5758# Tomcat in this version requires ant 1.6.2.
    5859# If the current version of ant is not at least 1.6.2 then add an
    5960# explicit dependency onto our ant port.
     61#
    6062if { [string length [auto_execok ant]] } {
    6163        set verOutput [exec ant -version]
    62         regexp {version (\d*(\.\d*(\.\d*)?)?)} $verOutput -> antVersion
     64        regexp {version (\d+(\.\d+)*)} $verOutput -> antVersion
    6365        if { [rpm-vercomp $antVersion "1.6.2"] < 0 } {
    6466                depends_build-append bin:XXX:apache-ant
Note: See TracChangeset for help on using the changeset viewer.