Changeset 129868


Ignore:
Timestamp:
Dec 21, 2014, 8:18:25 PM (5 years ago)
Author:
raimue@…
Message:

base: rename 'port doctor' to 'port diagnose'

As discussed on the mailing list:
https://lists.macosforge.org/pipermail/macports-dev/2014-August/027777.html

Location:
trunk/base
Files:
4 edited
3 moved

Legend:

Unmodified
Added
Removed
  • trunk/base/doc/Makefile.in

    r129061 r129868  
    3232                port-deps.1 \
    3333                port-destroot.1 \
     34                port-diagnose.1 \
    3435                port-dir.1 \
    3536                port-distcheck.1 \
    3637                port-distfiles.1 \
    3738                port-dmg.1 \
    38                 port-doctor.1 \
    3939                port-echo.1 \
    4040                port-edit.1 \
  • trunk/base/doc/port-diagnose.1

    r129846 r129868  
    11'\" t
    2 .TH "PORT\-DOCTOR" "1" "09/02/2014" "MacPorts 2\&.3\&.99" "MacPorts Manual"
     2.TH "PORT\-DIAGNOSE" "1" "12/21/2014" "MacPorts 2\&.3\&.99" "MacPorts Manual"
    33.\" -----------------------------------------------------------------
    44.\" * Define some portability stuff
     
    2121.\" -----------------------------------------------------------------
    2222.SH "NAME"
    23 port-doctor \- Detects common issues
     23port-diagnose \- Detects common issues
    2424.SH "SYNOPSIS"
    2525.sp
    2626.nf
    27 \fBport doctor\fR
     27\fBport diagnose\fR
    2828        [\-\-quiet]
    2929.fi
    3030.SH "DESCRIPTION"
    3131.sp
    32 \fBport doctor\fR will check a list of common issues that could affect the user or MacPorts in one way or another\&. If any issues are found, a warning will be shown to the user included with a possible fix for said problem\&.
     32\fBport diagnose\fR will check a list of common issues that could affect the user or MacPorts in one way or another\&. If any issues are found, a warning will be shown to the user included with a possible fix for said problem\&.
    3333.SH "OPTIONS"
    3434.PP
  • trunk/base/doc/port-diagnose.1.txt

    r129846 r129868  
    11// vim: set et sw=4 ts=8 ft=asciidoc tw=80:
    2 port-doctor(1)
     2port-diagnose(1)
    33==============
    44$Id$
     
    66NAME
    77----
    8 port-doctor - Detects common issues
     8port-diagnose - Detects common issues
    99
    1010SYNOPSIS
    1111--------
    1212[cmdsynopsis]
    13 *port doctor*
     13*port diagnose*
    1414        [--quiet]
    1515
    1616DESCRIPTION
    1717-----------
    18 *port doctor* will check a list of common issues that could affect the user or
     18*port diagnose* will check a list of common issues that could affect the user or
    1919MacPorts in one way or another. If any issues are found, a warning will be
    2020shown to the user included with a possible fix for said problem.
  • trunk/base/src/macports1.0/Makefile.in

    r124047 r129868  
    55
    66SRCS=           macports.tcl macports_dlist.tcl macports_util.tcl \
    7                 macports_autoconf.tcl doctor.tcl reclaim.tcl
     7                macports_autoconf.tcl diagnose.tcl reclaim.tcl
    88OBJS=           macports.o get_systemconfiguration_proxies.o sysctl.o
    99SHLIB_NAME=     MacPorts${SHLIB_SUFFIX}
  • trunk/base/src/macports1.0/diagnose.tcl

    r129743 r129868  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
    2 # doctor.tcl
    3 # $Id: doctor.tcl 119177 2014-04-18 22:35:29Z cal@macports.org $
     2# diagnose.tcl
     3# $Id: diagnose.tcl 119177 2014-04-18 22:35:29Z cal@macports.org $
    44#
    55# Copyright (c) 2002 - 2003 Apple Inc.
     
    5858# Support comments for the parser
    5959# Check for amount of drive space
    60 # Move port_doctor.ini to the port tree, below _resources
     60# Move port_diagnose.ini to the port tree, below _resources
    6161# Check for curl
    6262# Check for rsync
     
    6464
    6565
    66 package provide doctor 1.0
     66package provide diagnose 1.0
    6767
    6868package require macports
    6969package require reclaim 1.0
    7070
    71 namespace eval doctor {
     71namespace eval diagnose {
    7272
    7373    # Command line argument that determines whether or not to output things fancily.
     
    8686        # Setting the 'quiet' variable based on what was passed in.
    8787        if {$opts ne ""} {
    88             set doctor::quiet 1
     88            set diagnose::quiet 1
    8989        } else {
    90             set doctor::quiet 0
     90            set diagnose::quiet 0
    9191        }
    9292
     
    9696                                    "xcode_version_10.4" "xcode_build"}
    9797
    98         set user_config_path        ${macports::portdbpath}/port_doctor.ini
     98        set user_config_path        ${macports::portdbpath}/port_diagnose.ini
    9999        set xcode_config_path       [macports::getdefaultportresourcepath "macports1.0/xcode_versions.ini"]
    100100
     
    204204        #           None
    205205
    206         if {${doctor::quiet} == 0} {
     206        if {${diagnose::quiet} == 0} {
    207207            ui_msg -nonewline "Checking for $string... "
    208208        }
     
    218218        #           None
    219219
    220         if {${doctor::quiet} eq 0} {
     220        if {${diagnose::quiet} eq 0} {
    221221
    222222            if {$result == 1} {
     
    365365                               && ![macports::ui_isset ports_verbose] \
    366366                               && [info exists macports::ui_options(progress_generic)] \
    367                                && ${doctor::quiet} == 0}]
     367                               && ${diagnose::quiet} == 0}]
    368368
    369369        if {$fancyOutput} {
     
    374374            if {$fancyOutput} {
    375375                output "files installed by ports on disk"
    376                 if {${doctor::quiet} == 0} {
     376                if {${diagnose::quiet} == 0} {
    377377                    # we need a newline here or the progress bar will overwrite the line
    378378                    ui_msg ""
  • trunk/base/src/macports1.0/macports.tcl

    r128083 r129868  
    3737package require macports_dlist 1.0
    3838package require macports_util 1.0
    39 package require doctor 1.0
     39package require diagnose 1.0
    4040package require reclaim 1.0
    4141package require Tclx
     
    44264426}
    44274427
    4428 proc macports::doctor_main {opts} {
     4428proc macports::diagnose_main {opts} {
    44294429   
    4430     # Calls the main function for the 'port doctor' command.
     4430    # Calls the main function for the 'port diagnose' command.
    44314431    #
    44324432    # Args:
     
    44354435    #           0 on successful execution.
    44364436
    4437     doctor::main $opts
     4437    diagnose::main $opts
    44384438    return 0
    44394439}
  • trunk/base/src/port/port.tcl

    r129718 r129868  
    27262726}
    27272727
    2728 proc action_doctor { action portlist opts } {
     2728proc action_diagnose { action portlist opts } {
    27292729    if {[prefix_unwritable]} {
    27302730        return 1
    27312731    }
    2732     macports::doctor_main $opts
     2732    macports::diagnose_main $opts
    27332733    return 0
    27342734}
     
    42274227    rev-upgrade [list action_revupgrade     [ACTION_ARGS_NONE]] \
    42284228    reclaim     [list action_reclaim        [ACTION_ARGS_NONE]] \
    4229     doctor      [list action_doctor         [ACTION_ARGS_NONE]] \
     4229    diagnose    [list action_diagnose       [ACTION_ARGS_NONE]] \
    42304230    \
    42314231    version     [list action_version        [ACTION_ARGS_NONE]] \
     
    43874387    upgrade     {force enforce-variants no-replace no-rev-upgrade}
    43884388    rev-upgrade {id-loadcmd-check}
    4389     doctor      {quiet}
     4389    diagnose    {quiet}
    43904390}
    43914391
Note: See TracChangeset for help on using the changeset viewer.