Mercurial > p > roundup > code
changeset 7424:b54653a182a9
make local_install doesn't regenerate template/po files.
In CI, xpot is missing. So make local_install fails to rebuild and
install roundup.pot and .po. Have make local_install or pytest just
use the existing .po files like it used to before make dist rebuilt
everything.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 25 May 2023 22:59:20 -0400 |
| parents | f6bad20ef102 |
| children | 291c13c3b8e5 |
| files | locale/Makefile |
| diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/locale/Makefile Thu May 25 21:32:59 2023 -0400 +++ b/locale/Makefile Thu May 25 22:59:20 2023 -0400 @@ -41,7 +41,10 @@ template: roundup.pot -pytest local_install: dist +pytest local_install: + for file in $(PO_FILES); do \ + ${MSGFMT} -o `basename $$file .po`.mo $$file; \ + done for file in $(MO_FILES); do \ lang=`basename $$file .mo`; \ mkdir -p locale/$$lang/LC_MESSAGES; \
