tests/makefile: rewrite translate target to be compatible with busybox find

- https://manpages.debian.org/bullseye/busybox-static/busybox.1.en.html#find
This commit is contained in:
nodiscc 2022-09-13 17:09:28 +02:00
parent bd81f94287
commit e0a9d66d99
No known key found for this signature in database
GPG key ID: 067FC4266A4B6909

View file

@ -165,7 +165,7 @@ htmldoc:
### Generate Shaarli's translation compiled file (.mo)
translate:
@find inc/languages/ -name shaarli.po -execdir msgfmt shaarli.po -o shaarli.mo \;
@for pofile in $(find inc/languages/ -name shaarli.po); do msgfmt "$pofile" -o "$(dirname "$pofile")/$(basename "$pofile" .po).mo"; done
### Run ESLint check against Shaarli's JS files
eslint: