Changeset 299


Ignore:
Timestamp:
Aug 27, 2002, 8:06:49 AM (18 years ago)
Author:
landonf (Landon Fuller)
Message:

Support specifying target without -t flag

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/README

    r282 r299  
    4444
    4545    To build a port, cd to the port's directory and run 'portbuild'. To install
    46 a port, run 'portbuild -t install'. Please refer to the portbuild man page for
     46a port, run 'portbuild install'. Please refer to the portbuild man page for
    4747complete documentation on the 'portbuild' command.
    4848
  • trunk/base/src/portbuild/portbuild.1

    r288 r299  
    77.Sh SYNOPSIS
    88.Nm
     9.Op target
    910.Op Fl d Ar portdir
    10 .Op Fl t Ar target
    1111.Op options ...
    1212.Sh DESCRIPTION
     
    1818with the "extract" target and extract_sufx set to ".tgz"
    1919.Pp
    20 .Dl "portbuild -t extract extract_sufx=.tgz"
     20.Dl "portbuild extract extract_sufx=.tgz"
    2121.Pp
    2222.Sh DIAGNOSTICS
  • trunk/base/src/portbuild/portbuild.tcl

    r241 r299  
    99proc print_usage args {
    1010    global argv0
    11     puts "Usage: $argv0 \[-t <target>\] \[-d portdir\] \[options\]"
     11    puts "Usage: $argv0 \[target\] \[-d portdir\] \[options\]"
    1212}
    1313
     
    2222for {set i 0} {$i < $argc} {incr i} {
    2323        switch -regexp -- [lindex $argv $i] {
    24                 -d {
     24                {^-d$} {
    2525                        incr i
    2626                        set portdir [lindex $argv $i]
    2727                }
    28                 -t {
    29                         incr i
    30                         set target [lindex $argv $i]
    31                 }
    32                 {[A-Za-z0-9_\.]+=.+} {
     28                {^[A-Za-z0-9_\.]+=.+$} {
    3329                        if {[regexp {([A-Za-z0-9_\.]+)=(.+)} [lindex $argv $i] match key val] == 1} {
    3430                                lappend options [lindex $argv $i]
    3531                        }
     32                }
     33                {^[A-Za-z0-9]+$} {
     34                        set target [lindex $argv $i]
    3635                }
    3736                default { print_usage; exit }
Note: See TracChangeset for help on using the changeset viewer.