Browse Source

nls: Update documentation po and pot with `make dist`.

* Makefile.am: dist-hook depends on doc-po-update.
* po/doc/local.mk (doc-po-update): New target.
gn-latest-20200428
Julien Lepiller 2 years ago
parent
commit
7565d40e1e
No known key found for this signature in database GPG Key ID: 43111F4520086A0C
2 changed files with 11 additions and 2 deletions
  1. +1
    -0
      Makefile.am
  2. +10
    -2
      po/doc/local.mk

+ 1
- 0
Makefile.am View File

@ -612,6 +612,7 @@ guix-binary.%.tar.xz:
dist-hook: $(distdir)/ChangeLog gen-AUTHORS gen-tarball-version
dist-hook: assert-no-store-file-names
dist-hook: doc-po-update
distcheck-hook: assert-binaries-available assert-final-inputs-self-contained


+ 10
- 2
po/doc/local.mk View File

@ -16,11 +16,14 @@
# You should have received a copy of the GNU General Public License
# along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
EXTRA_DIST = \
%D%/guix-manual.pot \
DOC_PO_FILES= \
%D%/guix-manual.de.po \
%D%/guix-manual.fr.po
EXTRA_DIST = \
%D%/guix-manual.pot \
$(DOC_PO_FILES)
POT_OPTIONS = --package-name "guix" --package-version "$(VERSION)" \
--copyright-holder "Ludovic Courtès" \
--msgid-bugs-address "ludo@gnu.org"
@ -58,3 +61,8 @@ doc-pot-update:
done
msgcat $(addprefix $(srcdir)/po/doc/, $(TMP_POT_FILES)) > $(srcdir)/po/doc/guix-manual.pot
rm -f $(addprefix $(srcdir)/po/doc/, $(TMP_POT_FILES))
doc-po-update: doc-pot-update
for f in $(DOC_PO_FILES); do \
$(MAKE) "$$f"; \
done

Loading…
Cancel
Save