Changeset 30006 for trunk/base


Ignore:
Timestamp:
Oct 18, 2007, 3:25:45 AM (12 years ago)
Author:
jmpp@…
Message:

N_Ox: this is the modeline you were looking for ;-)
Also some more whitespace cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portstartupitem.tcl

    r30004 r30006  
    1 # et:ts=4
     1# -*- 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
    22# portstartupitem.tcl
    33#
     
    167167
    168168    if { [llength ${startupitem.executable}] &&
    169             ![llength ${startupitem.init}] &&
    170             ![llength ${startupitem.start}] &&
    171             ![llength ${startupitem.stop}] &&
    172             ![llength ${startupitem.restart}] } {
     169      ![llength ${startupitem.init}] &&
     170      ![llength ${startupitem.start}] &&
     171      ![llength ${startupitem.stop}] &&
     172      ![llength ${startupitem.restart}] } {
    173173        # An executable is specified, and there is no init, start, stop, or restart
    174174    } else {
     
    203203#
    204204
    205 }
     205    }
    206206    puts ${item} "prefix=$prefix"
    207207    # Source the utilities package and the MacPorts config file
     
    351351
    352352RunService "$1"
    353 }
     353    }
    354354    # ^^^^^^ END BOILERPLATE ^^^^^^
    355355   
     
    396396    set itemdir         ${prefix}/etc/${daemondest}/${uniquename}
    397397    set args            [list \
    398                             "${prefix}/bin/daemondo" \
    399                             "--label=${itemname}" \
    400                             ]
     398                          "${prefix}/bin/daemondo" \
     399                          "--label=${itemname}" \
     400                        ]
    401401   
    402402    file mkdir ${destroot}${itemdir}
     
    404404       
    405405    if { [llength ${startupitem.executable}] &&
    406             ![llength ${startupitem.init}] &&
    407             ![llength ${startupitem.start}] &&
    408             ![llength ${startupitem.stop}] &&
    409             ![llength ${startupitem.restart}] } {
     406      ![llength ${startupitem.init}] &&
     407      ![llength ${startupitem.start}] &&
     408      ![llength ${startupitem.stop}] &&
     409      ![llength ${startupitem.restart}] } {
    410410           
    411411        # An executable is specified, and there is no init, start, stop, or restart
     
    432432
    433433        lappend args \
    434             "--start-cmd"   ${wrapper} start   ";" \
    435             "--stop-cmd"    ${wrapper} stop    ";" \
    436             "--restart-cmd" ${wrapper} restart ";"
     434          "--start-cmd"   ${wrapper} start   ";" \
     435          "--stop-cmd"    ${wrapper} stop    ";" \
     436          "--restart-cmd" ${wrapper} restart ";"
    437437
    438438        # Create the wrapper script
     
    636636    }
    637637}
    638 
Note: See TracChangeset for help on using the changeset viewer.