Ticket #45405: master-sites.tcl

File master-sites.tcl, 519 bytes (added by kurthindenburg (Kurt Hindenburg), 10 years ago)
Line 
1# $Id: master-sites.tcl $
2#
3# This file contains the livecheck defaults for using port's master_sites.
4
5if {${livecheck.name} eq "default"} {
6    set livecheck.name ${name}
7}
8if {${livecheck.distname} eq "default"} {
9    set livecheck.distname ${livecheck.name}
10}
11if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
12    set livecheck.url [lindex ${master_sites} 0]
13}
14if {${livecheck.regex} eq ""} {
15    set livecheck.regex [list "[quotemeta ${livecheck.distname}]-(\\d+(?:\\.\\d+)*)"]
16}
17set livecheck.type "regex"