aboutsummaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-10-07 12:11:27 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-10-07 12:11:27 +0000
commit516cfbeee4cd353abc3e9237261e14b11b84771c (patch)
tree572af38f01af885302f05361aec54a9592b06585 /po/Makefile
parentbba36e2e6b57588a7886330716747da4ff1fb143 (diff)
downloadbootsplash-516cfbeee4cd353abc3e9237261e14b11b84771c.tar
bootsplash-516cfbeee4cd353abc3e9237261e14b11b84771c.tar.gz
bootsplash-516cfbeee4cd353abc3e9237261e14b11b84771c.tar.bz2
bootsplash-516cfbeee4cd353abc3e9237261e14b11b84771c.tar.xz
bootsplash-516cfbeee4cd353abc3e9237261e14b11b84771c.zip
po files are unneeded now
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile68
1 files changed, 0 insertions, 68 deletions
diff --git a/po/Makefile b/po/Makefile
deleted file mode 100644
index d943c41..0000000
--- a/po/Makefile
+++ /dev/null
@@ -1,68 +0,0 @@
-INSTALL= /usr/bin/install -c
-INSTALL_PROGRAM= ${INSTALL}
-INSTALL_DATA= ${INSTALL} -m 644
-INSTALLNLSDIR=/usr/share/locale
-
-MSGMERGE = msgmerge
-
-NLSPACKAGE = bootsplash
-
-CATALOGS = $(shell ls *.po)
-FMTCATALOGS = $(patsubst %.po,%.mo,$(CATALOGS))
-
-all: $(FMTCATALOGS)
-
-pot $(NLSPACKAGE).pot:
- rm -rf tmp
- mkdir tmp
- cp ../scripts/splash.sh tmp
- ./gprintify.py tmp/*
- ./xgettext_sh.py tmp/* > $(NLSPACKAGE).po
- if cmp -s $(NLSPACKAGE).po $(NLSPACKAGE).pot; then \
- rm -f $(NLSPACKAGE).po; \
- else \
- mv $(NLSPACKAGE).po $(NLSPACKAGE).pot; \
- fi
- rm -rf tmp
-
-update-po: Makefile
- $(MAKE) $(NLSPACKAGE).pot
- $(MAKE) refresh-po
-
-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
-
-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
- sed 's/$[a-zA-Z0-9_{}]*/%s/g' < $< | msgfmt -o $@ -
- # for RTL langs, we use a hacked version of the po files that already
- # did the reordering and shaping
- if [ -r "`basename $@ .mo`.hack" ]; then msgfmt -o $@ "`basename $@ .mo`.hack" ; fi