diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 05:55:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 05:55:27 +0000 |
commit | 32e0ba8ebdadc47ac1a0da8d9a9668ff21909e4f (patch) | |
tree | ebaa5eacafe874b431d69e52f0f73c013c3017ae /po/Makefile | |
parent | Initial commit. (diff) | |
download | adduser-32e0ba8ebdadc47ac1a0da8d9a9668ff21909e4f.tar.xz adduser-32e0ba8ebdadc47ac1a0da8d9a9668ff21909e4f.zip |
Adding upstream version 3.118+deb11u1.upstream/3.118+deb11u1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | po/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile new file mode 100644 index 0000000..55dc068 --- /dev/null +++ b/po/Makefile @@ -0,0 +1,39 @@ +XGETTEXT = xgettext +MSGFMT = msgfmt +MSGMERGE = msgmerge + +LOCALEDIR = /usr/share/locale + +.SUFFIXES: .po .mo .pot + +%.mo: %.po + $(MSGFMT) -o $@ $< + +PO = $(wildcard *.po) +LANG = $(basename $(PO)) +MO = $(addsuffix .mo,$(LANG)) +SOURCES = ../adduser ../deluser ../AdduserCommon.pm + +all: update $(MO) +update: adduser.pot + -@for po in $(PO); do \ + echo -n "Updating $$po"; \ + $(MSGMERGE) --previous -U $$po adduser.pot; \ + done; + +adduser.pot: $(SOURCES) + $(XGETTEXT) -c -L Perl -kgtx \ + --msgid-bugs-address=adduser@packages.debian.org \ + -o $@ $(SOURCES) + +install: all + for i in $(MO) ; do \ + t=$(DESTDIR)/$(LOCALEDIR)/`basename $$i .mo`/LC_MESSAGES ;\ + install -d $$t ;\ + install -m 644 $$i $$t/adduser.mo ;\ + done + +clean: + $(RM) $(MO) *~ + +.PHONY: update |