Changeset 23409


Ignore:
Timestamp:
Mar 31, 2007, 7:44:01 AM (12 years ago)
Author:
jkh@…
Message:

Someone was very confused about how to use the command syntax:

  1. There is no command called "command" - I don't know how this even worked before
  2. command_exec is the way you invoke a command (in the port(1) sense of the term)
  3. This is a really fugly way to build a static version of this and needs a rewrite at some point.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/archivers/zlib/Portfile

    r22776 r23409  
    3333    ui_msg "$UI_PREFIX Configuring libz.a"
    3434    configure.args-delete --shared
    35     run_command configure
     35    command_exec configure
    3636    modify_ldshared
    3737    ui_msg "$UI_PREFIX Building libz.a"
    38     run_command build
     38    command_exec build
    3939    ui_msg "$UI_PREFIX Staging libz.a into destroot"
    4040    xinstall ${worksrcpath}/libz.a ${destroot}${prefix}/lib/
     
    5757    }
    5858}
    59 
    60 proc run_command {cmd} {
    61     if {[catch {system "[command $cmd]"} result]} {
    62         return -code error "[format [msgcat::mc "%s failure: %s"] $cmd $result]"
    63     }
    64 }
Note: See TracChangeset for help on using the changeset viewer.