summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-04-29 06:51:51 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-04-29 07:01:22 +0200
commit547545a7959fc5df7501c3d7c412522b425e2ba2 (patch)
tree39cd3678d040404894d16e5772a1c6c5b008a307 /po
parent1b5cf80e32606b479df6a15f0882f1ffecbf3081 (diff)
downloadbison-547545a7959fc5df7501c3d7c412522b425e2ba2.tar.gz
package: fix distcheck
Bison emits strings to translate in the generated code, for builtin tokens. So they appear only in generated parsers, which are not shipped, so they are not in the src tree, so we cannot use them in our POTFILE. Except src/parse-gram.c, which is in the source tree. And even in the git repo. But to avoid useless diffs in the repo, we do not keep the src/parse-gram.c _with_ the #lines. This is done in a dist-hook which regenerates src/parse-gram.c when we run "make dist". Unfortunately, then, update-po traverses the whole tree and sees that the location of the strings to translate in src/parse-gram.c have changed, so the bison.pot is to be updated. And that is not possible in the "make dist" which is run within "make distcheck" (not the one preparing the dist for distcheck, the one run by distcheck to check that a distributed tarball can build a tarball) because then the src tree is read-only. So let's not put src/parse-gram.c in the POTFILE, and expose these strings to gettextize by hand. * src/i18n-strings.c: New. * po/POTFILES.in: Add it, and remove src/parse-gram.c.
Diffstat (limited to 'po')
-rw-r--r--po/POTFILES.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 1eca4cdd..4f256b2c 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -6,10 +6,10 @@ src/fixits.c
src/getargs.c
src/gram.c
src/graphviz.c
+src/i18n-strings.c
src/location.c
src/main.c
src/muscle-tab.c
-src/parse-gram.c
src/parse-gram.y
src/print-graph.c
src/print.c