Changeset 14508 for trunk/base


Ignore:
Timestamp:
Oct 9, 2005, 6:37:19 PM (19 years ago)
Author:
jberry
Message:
  • Rename "portfile" action to "file"; rename "path" action to "dir".
  • Rename "ed" action to "edit", keeping "ed" as a nice short alias.
  • Abbreviate url used to specify current directory, so it looks better when we convert it to a path and add a "/".
  • Update ChangeLog to with additional information about new actions, and to reflect new names.
Location:
trunk/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/ChangeLog

    r14506 r14508  
    11#
    2 #       $Id: ChangeLog,v 1.7 2005/10/09 15:31:27 jberry Exp $
     2#       $Id: ChangeLog,v 1.8 2005/10/09 18:37:18 jberry Exp $
    33#
    44#       This is a log of major user-visible changes in each release
     
    8686        - Snazzy new ChangeLog file
    8787       
    88         - Add new actions for port(1): help, echo, cat, ed, path, portfile (jberry)
     88        - Add new actions for port(1): help (get help about port),
     89          echo (the expanded arguments),
     90          cat (the contents of the Portfiles from the specified ports),
     91          edit (also alias "ed", the contents of the Portfiles, using EDITOR or VISUAL),
     92          dir (emit path to the port's directory),
     93          file (emit path to the port's Portfile)
     94          (jberry)
    8995
    9096
  • trunk/base/src/port/port.tcl

    r14506 r14508  
    33exec @TCLSH@ "$0" "$@"
    44# port.tcl
    5 # $Id: port.tcl,v 1.114 2005/10/09 15:31:28 jberry Exp $
     5# $Id: port.tcl,v 1.115 2005/10/09 18:37:19 jberry Exp $
    66#
    77# Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org>
     
    304304                        set url $global_porturl
    305305                } else {
    306                         set url file://./
     306                        set url file://.
    307307                }
    308308                set portname [url_to_portname $url]
     
    362362                        set url $global_porturl
    363363                } else {
    364                         set url file://./
     364                        set url file://.
    365365                }
    366366                set portname [url_to_portname $url]
     
    460460                set url $global_porturl
    461461        } else {
    462                 set url file://./
     462                set url file://.
    463463        }
    464464        set portname [url_to_portname $url]
     
    16991699        }
    17001700       
    1701         ed      -
     1701        ed - edit -
    17021702        cat -
    1703         path -
    1704         portfile {
     1703        dir -
     1704        file {
    17051705                # Operations on the PortFiles of the port
    17061706                require_portlist
     
    17361736                                        }
    17371737                                       
    1738                                         ed {
     1738                                        ed - edit {
    17391739                                                # Find an editor to edit the portfile
    17401740                                                set editor ""
     
    17521752                                        }
    17531753                                       
    1754                                         path {
    1755                                                 # output the path to the port
     1754                                        dir {
     1755                                                # output the path to the port's directory
    17561756                                                puts $portdir
    17571757                                        }
    17581758
    1759                                         portfile {
    1760                                                 # output the path to the portfile
     1759                                        file {
     1760                                                # output the path to the port's portfile
    17611761                                                puts $portfile
    17621762                                        }
Note: See TracChangeset for help on using the changeset viewer.