Fix reinplace in macports package to work on both 10.7 and 10.8

reinplace on OSX 10.8 seems to behave differently, this change has been tested
on a few 10.8 and 10.7 machines.
This commit is contained in:
Jimmy Tang 2013-03-25 17:08:40 +00:00
parent cd0dd2a6ad
commit 2dce6089c4

View file

@ -38,8 +38,8 @@ depends_lib-append port:py${python.version}-jinja2 \
patch { patch {
fs-traverse f ${worksrcpath} { fs-traverse f ${worksrcpath} {
if {[file isfile ${f}]} { if {[file isfile ${f}]} {
reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f} reinplace -locale C "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}
reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f} reinplace -locale C "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}
} }
} }
} }