#26406: .packlist files contain each line twice -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: perl5 portgroup -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Replying to [ticket:26406 ryandesign@…]:
This should be an easy two-statement one-liner with sed; I'm not sure if reinplace alone can handle it.
Make that a one-statement one-liner with sed: {{{ sed -n "s|${destroot}||p" ${file} }}} That would be within an `fs-traverse` finding all .packlists. `reinplace` doesn't have the `-n` switch though so we may actually have to call out to `sed` using `system`. Or we could enhance `reinplace` to support the `-n` switch. -- Ticket URL: <http://trac.macports.org/ticket/26406#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS