Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"rename" command with perl/regex not universally supported on different distros #19

Open
danieldjewell opened this issue Feb 27, 2023 · 0 comments

Comments

@danieldjewell
Copy link

Hi!

I ran into an issue while using tess5train on Arch Linux ... The rename command as used in the Makefile (example below) is, at least on Arch Linux, from the util-linux package - which is the same on Debian/Ubuntu distributions. The default rename command does not support PCRE / Regular Expressions ... This causes your Makefile to fail... Not sure about Debian-based distros, but on Arch, the package is perl-rename and the associated command is perl-rename ...

rename "s/$(TESSTRAIN_LANG)\./$(MODEL_NAME)-eval\./g" $(OUTPUT_DIR)/*.*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant