Hi ports, Here is an update for sysutils/p5-File-Rename, a perl module that renames files using regular expressions, including a 'rename' script for direct command-line use.
What's new upstream (full changelog[1]):
- File::Rename::Options has been added, it's used for parsing the script
options
- Various fixes and improved test suite
What's new in the port:
- Followed Stuart Henderson's suggestion [2] to rename 'rename' to
'prename' as it's usually found by this name on other operating
systems. It shouldn't cause too much disruption doing it now, as the
port has been imported ~ 3 months ago. A MESSAGE has been added to this
effect, and DESCR modified accordingly.
- A DESCR example of prename wasn't working. I fixed it.
Testing:
Tested with proot on amd64 (it's noarch anyway):
- 'make test' returns PASSED - i've let pod coverage as-is, but checked
that manpages are properly generated.
- prename examples given in DESCR are working
- Tried the module itself with a simple example:
perl -e 'use File::Rename; File::Rename::rename(["/etc/motd"],
{_code=>sub{s/m/M/}, verbose=>1, no_action=>1})'
Any comment and feedback is welcome!
Charlène.
[1] https://metacpan.org/changes/distribution/File-Rename
[2] https://marc.info/?l=openbsd-ports&m=152767952308067&w=2
p5-File-Rename.diff
Description: Binary data
