Changeset 10851


Ignore:
Timestamp:
Feb 6, 2005, 10:45:43 PM (15 years ago)
Author:
jmpp
Message:

Submitted by: jmpp@

Small, gratuituos change to show some tcl "fanciness", exchanging two instructions to install files with a common
basename by a glob pattern. Thanks to toby@ for the Tcl crash course!
No uprev needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/rtf2latex/Portfile

    r10436 r10851  
    1 # $Id: Portfile,v 1.2 2005/01/16 11:33:24 jmpp Exp $
     1# $Id: Portfile,v 1.3 2005/02/06 22:45:43 jmpp Exp $
    22
    33PortSystem 1.0
     
    3535post-destroot   {
    3636                xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
    37 # Construct regular expresion to reduce the following two lines into a single one!
    38                 xinstall -m 644 -v ${worksrcpath}/interna.tex ${destroot}${prefix}/share/doc/${name}
    39                 xinstall -m 644 -v ${worksrcpath}/interna.rtf ${destroot}${prefix}/share/doc/${name}
     37                foreach f [glob -directory ${worksrcpath} -type f interna.*] {
     38                        xinstall -m 644 -v $f ${destroot}${prefix}/share/doc/${name}
     39                }
    4040}
Note: See TracChangeset for help on using the changeset viewer.