summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-02 15:16:56 +0000
committerMatt Wilson <msw@redhat.com>1999-08-02 15:16:56 +0000
commit5e152be2dd6f708410cb46e671245e649991f92b (patch)
treeab9e4b573d5217f6b3e4fdcfaa2370fa87483bae /po/Makefile
parent671e0b107cb387e87d2a9763a0a73e81e8e81c02 (diff)
downloadanaconda-5e152be2dd6f708410cb46e671245e649991f92b.tar.gz
anaconda-5e152be2dd6f708410cb46e671245e649991f92b.tar.xz
anaconda-5e152be2dd6f708410cb46e671245e649991f92b.zip
o New interface requirements: exceptionWindow, messageWindow
o Network device configuration, configuration file writing o Root password dialog, /etc/password modification o isys has the ntoa and aton functions in it now
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile74
1 files changed, 74 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile
new file mode 100644
index 000000000..f9d6ee754
--- /dev/null
+++ b/po/Makefile
@@ -0,0 +1,74 @@
+INSTALL= /usr/bin/install -c
+INSTALL_PROGRAM= ${INSTALL}
+INSTALL_DATA= ${INSTALL} -m 644
+INSTALLNLSDIR=/usr/share/locale
+
+MSGMERGE = msgmerge
+
+NLSPACKAGE = anaconda-text
+
+CATALOGS = $(shell ls *.po)
+FMTCATALOGS = $(patsubst %.po,%.mo,$(CATALOGS))
+
+POTFILES = ../text.py
+
+all: $(NLSPACKAGE).pot $(FMTCATALOGS)
+
+$(NLSPACKAGE).pot: $(POTFILES)
+ xgettext --default-domain=$(NLSPACKAGE) \
+ --add-comments --keyword=_ --keyword=N_ $(POTFILES)
+ if cmp -s $(NLSPACKAGE).po $(NLSPACKAGE).pot; then \
+ rm -f $(NLSPACKAGE).po; \
+ else \
+ mv $(NLSPACKAGE).po $(NLSPACKAGE).pot; \
+ fi
+
+
+update-po: Makefile
+ $(MAKE) $(NLSPACKAGE).pot
+ catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ lang=`basename $$cat .po`; \
+ if $(MSGMERGE) $$lang.po $(NLSPACKAGE).pot > $$lang.pot ; then \
+ mv -f $$lang.pot $$lang.po ; \
+ echo "$(MSGMERGE) of $$lang succeeded" ; \
+ else \
+ echo "$(MSGMERGE) of $$lang failed" ; \
+ rm -f $$lang.pot ; \
+ fi \
+ done
+
+refresh-po: Makefile
+ catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ lang=`basename $$cat .po`; \
+ if $(MSGMERGE) $$lang.po $(NLSPACKAGE).pot > $$lang.pot ; then \
+ mv -f $$lang.pot $$lang.po ; \
+ echo "$(MSGMERGE) of $$lang succeeded" ; \
+ else \
+ echo "$(MSGMERGE) of $$lang failed" ; \
+ rm -f $$lang.pot ; \
+ fi \
+ done
+
+clean:
+ rm -f *mo $(NLSPACKAGE).pot
+
+distclean: clean
+ rm -f .depend Makefile
+
+depend:
+
+install: all
+ mkdir -p $(PREFIX)/$(INSTALLNLSDIR)
+ for n in $(CATALOGS); do \
+ l=`basename $$n .po`; \
+ mo=$$l.mo; \
+ $(INSTALL) -m 755 -d $(PREFIX)/$(INSTALLNLSDIR)/$$l; \
+ $(INSTALL) -m 755 -d $(PREFIX)/$(INSTALLNLSDIR)/$$l/LC_MESSAGES; \
+ $(INSTALL) -m 644 $$mo \
+ $(PREFIX)/$(INSTALLNLSDIR)/$$l/LC_MESSAGES/$(NLSPACKAGE).mo; \
+ done
+
+%.mo: %.po
+ msgfmt -o $@ $<