Changeset 2126 for trunk/base


Ignore:
Timestamp:
Mar 3, 2003, 7:17:03 AM (17 years ago)
Author:
kevin
Message:

Added -o option to ignore modification times on state file and Portfile

Location:
trunk/base/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port/port.1

    r2124 r2126  
    3636.Sh SYNOPSIS
    3737.Nm
    38 .Op Fl vdqo
     38.Op Fl vdqfo
    3939.Op Ar target
    4040.Op Ar portname
     
    7070specify
    7171.Ar portdir
     72.It Fl f
     73force mode (ignore state file)
    7274.It Fl o
    7375honor state files older than Portfile
  • trunk/base/src/port/port.tcl

    r2124 r2126  
    150150proc print_usage args {
    151151    global argv0
    152     puts "Usage: $argv0 \[-vdqo\] \[action\] \[-D portdir\] \[options\]"
     152    puts "Usage: $argv0 \[-vdqof\] \[action\] \[-D portdir\] \[options\]"
    153153}
    154154
  • trunk/base/src/port1.0/portutil.tcl

    r2118 r2126  
    537537# open file to store name of completed targets
    538538proc open_statefile {args} {
    539     global workpath portname portpath
     539    global workpath portname portpath ports_ignore_older
    540540   
    541541    if ![file isdirectory $workpath ] {
     
    548548                        return -code error "$statefile is not writable - check permission on port directory"
    549549                }
    550                 if {[file mtime $statefile] < [file mtime ${portpath}/Portfile]} {
     550                if {!([info exists ports_ignore_older] && $ports_ignore_older == "yes") && [file mtime $statefile] < [file mtime ${portpath}/Portfile]} {
    551551                        ui_msg "Portfile changed since last build; discarding previous state."
    552552                        file delete $statefile
Note: See TracChangeset for help on using the changeset viewer.