aboutsummaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2011-10-21 01:28:48 +0100
committerColin Guthrie <colin@mageia.org>2011-10-21 10:10:39 +0100
commitbe75c98a06d569fbaa2d86f92676af961795d094 (patch)
treee2ce8ce7ffb97af34164634a3fbd8630dc7463e8 /po/Makefile
parent4688ea25c9a5a87e48f89fc91a3c93a7c8c95b4a (diff)
downloadinitscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar
initscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar.gz
initscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar.bz2
initscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar.xz
initscripts-be75c98a06d569fbaa2d86f92676af961795d094.zip
Add the mdkconf patch
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile71
1 files changed, 0 insertions, 71 deletions
diff --git a/po/Makefile b/po/Makefile
deleted file mode 100644
index 2ecae4f0..00000000
--- a/po/Makefile
+++ /dev/null
@@ -1,71 +0,0 @@
-INSTALL= /usr/bin/install -c
-INSTALL_PROGRAM= ${INSTALL}
-INSTALL_DATA= ${INSTALL} -m 644
-INSTALLNLSDIR=/usr/share/locale
-
-MSGMERGE = msgmerge
-
-NLSPACKAGE = initscripts
-
-CATALOGS = $(shell ls *.po)
-FMTCATALOGS = $(patsubst %.po,%.mo,$(CATALOGS))
-
-POTFILES = /etc/ppp/ip* /etc/rc.d/init.d/* /etc/rc.d/rc /etc/rc.d/rc.* \
- $(shell ls /etc/sysconfig/network-scripts/* | grep -v ifcfg-) \
- /sbin/service /usr/sbin/sys-unconfig /etc/init/*.conf
-
-all: $(NLSPACKAGE).pot $(FMTCATALOGS)
-
-$(NLSPACKAGE).pot:
- @echo "Please don't run 'make initscripts.pot unless you have a *FULL*, current install."
-
-new-pot-file-i-really-mean-it: $(POTFILES)
- ./xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po
- if cmp -s $(NLSPACKAGE).po $(NLSPACKAGE).pot; then \
- rm -f $(NLSPACKAGE).po; \
- else \
- mv $(NLSPACKAGE).po $(NLSPACKAGE).pot; \
- fi
-
-refresh-po: Makefile
- catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
- lang=`echo $$cat | sed 's/.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
-
-update-po: $(NLSPACKAGE).pot Makefile refresh-po
-
-report:
- @for cat in $(CATALOGS); do \
- echo -n "$$cat: "; \
- msgfmt -v --statistics -o /dev/null $$cat; \
- done
-
-clean:
- rm -f *mo *.pyc
-
-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 $@ $<