Skip to content
Permalink
Browse files

Add 0-9 to variable name regexp

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@200 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
landonf committed Aug 19, 2002
1 parent f214d4d commit 72b2732b66d40c2ca1411269a6092ceaf55af989
Showing with 3 additions and 3 deletions.
  1. +1 −1 Install/darwinports1.0/darwinports.tcl
  2. +2 −2 bin/portbuild
@@ -83,7 +83,7 @@ proc build {portdir chain target {options ""}} {
}

foreach opt $options {
if {[regexp {([A-Za-z_\.]+)=(.+)} $opt match key val] == 1} {
if {[regexp {([A-Za-z0-9_\.]+)=(.+)} $opt match key val] == 1} {
$workername eval set user_options($key) \"$val\"
$workername eval set $key \"$val\"
}
@@ -29,8 +29,8 @@ for {set i 0} {$i < $argc} {incr i} {
incr i
set target [lindex $argv $i]
}
{[A-Za-z_\.]+=.+} {
if {[regexp {([A-Za-z_\.]+)=(.+)} [lindex $argv $i] match key val] == 1} {
{[A-Za-z0-9_\.]+=.+} {
if {[regexp {([A-Za-z0-9_\.]+)=(.+)} [lindex $argv $i] match key val] == 1} {
lappend options [lindex $argv $i]
}
}

0 comments on commit 72b2732

Please sign in to comment.
You can’t perform that action at this time.