tazpkg diff Makefile @ rev 633

Add Polish translation (thanks Pawel Pyrczak); merge tazpkg, tazpkg-notify and other *pkg* translations into one; simplify plural translations using $num; normalize name (Tazpkg, TazPKG -> TazPkg); move markup outside translations; re-use categories names in tazpkg and tazpanel; other tiny improvements.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jul 25 01:47:48 2013 +0300 (2013-07-25)
parents 182ffcf8e9eb
children 4019a25fde20
line diff
     1.1 --- a/Makefile	Sat Jun 29 20:18:19 2013 +0200
     1.2 +++ b/Makefile	Thu Jul 25 01:47:48 2013 +0300
     1.3 @@ -1,10 +1,10 @@
     1.4 -# Makefile for Tazpkg.
     1.5 +# Makefile for TazPkg.
     1.6  #
     1.7  PREFIX?=/usr
     1.8  DOCDIR?=$(PREFIX)/share/doc
     1.9  SYSCONFDIR?=/etc/slitaz
    1.10  DESTDIR?=
    1.11 -LINGUAS?=el es fr pt_BR ru
    1.12 +LINGUAS?=el es fr pl pt_BR ru sv
    1.13  
    1.14  VERSION:=$(shell grep ^VERSION=[0-9] tazpkg | cut -d '=' -f 2)
    1.15  
    1.16 @@ -12,43 +12,30 @@
    1.17  tarball = tazpkg-$(VERSION).tar.gz
    1.18  
    1.19  all: msgfmt
    1.20 -	
    1.21 +
    1.22  # i18n.
    1.23  
    1.24  pot:
    1.25 -	xgettext -o po/tazpkg/tazpkg.pot -L Shell \
    1.26 -		--package-name=Tazpkg \
    1.27 -		--package-version="$(VERSION)" -kaction -ktitle ./tazpkg ./tazpkg-box
    1.28 -	xgettext -o po/tazpkg-notify/tazpkg-notify.pot -L Shell \
    1.29 -		--package-name="Tazpkg Notification" \
    1.30 -		--package-version="$(VERSION)" ./tazpkg-notify
    1.31 -	
    1.32 +	xgettext -o po/tazpkg.pot -L Shell \
    1.33 +		--package-name=TazPkg \
    1.34 +		--package-version="$(VERSION)" -kaction -ktitle \
    1.35 +		./tazpkg ./tazpkg-box ./pkgs ./pkgs.cgi ./tazpkg-notify
    1.36 +
    1.37  msgmerge:
    1.38  	@for l in $(LINGUAS); do \
    1.39 -		if [ -f "po/tazpkg/$$l.po" ]; then \
    1.40 +		if [ -f "po/$$l.po" ]; then \
    1.41  			echo -n "Updating $$l po file."; \
    1.42 -			msgmerge -U po/tazpkg/$$l.po po/tazpkg/tazpkg.pot ; \
    1.43 -		fi; \
    1.44 -		if [ -f "po/tazpkg-notify/$$l.po" ]; then \
    1.45 -			echo -n "Updating $$l po file."; \
    1.46 -			msgmerge -U po/tazpkg-notify/$$l.po po/tazpkg-notify/tazpkg-notify.pot; \
    1.47 +			msgmerge -U po/$$l.po po/tazpkg.pot ; \
    1.48  		fi; \
    1.49  	done
    1.50  
    1.51  msgfmt:
    1.52  	@for l in $(LINGUAS); do \
    1.53 -		if [ -f "po/tazpkg/$$l.po" ]; then \
    1.54 +		if [ -f "po/$$l.po" ]; then \
    1.55  			echo -n "Compiling tazpkg $$l mo file... "; \
    1.56  			mkdir -p po/mo/$$l/LC_MESSAGES; \
    1.57  			msgfmt -o po/mo/$$l/LC_MESSAGES/tazpkg.mo \
    1.58 -				po/tazpkg/$$l.po ; \
    1.59 -			echo "done"; \
    1.60 -		fi; \
    1.61 -		if [ -f "po/tazpkg-notify/$$l.po" ]; then \
    1.62 -			echo -n "Compiling tazpkg-notify $$l mo file... "; \
    1.63 -			mkdir -p po/mo/$$l/LC_MESSAGES; \
    1.64 -			msgfmt -o po/mo/$$l/LC_MESSAGES/tazpkg-notify.mo \
    1.65 -				po/tazpkg-notify/$$l.po ; \
    1.66 +				po/$$l.po ; \
    1.67  			echo "done"; \
    1.68  		fi; \
    1.69  	done;
    1.70 @@ -56,10 +43,10 @@
    1.71  # Installation.
    1.72  
    1.73  install: msgfmt
    1.74 -	# Tazpkg command line interface
    1.75 +	# TazPkg command line interface
    1.76  	install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
    1.77  	install -m 0777 tazpkg $(DESTDIR)$(PREFIX)/bin
    1.78 -	# Tazpkg-box GUI
    1.79 +	# TazPkg-box GUI
    1.80  	install -m 0777 tazpkg-notify $(DESTDIR)$(PREFIX)/bin
    1.81  	install -m 0777 tazpkg-box $(DESTDIR)$(PREFIX)/bin
    1.82  	# Configuration files
    1.83 @@ -68,7 +55,7 @@
    1.84  	# Documentation
    1.85  	install -m 0755 -d $(DESTDIR)$(DOCDIR)/tazpkg
    1.86  	cp -a doc/* $(DESTDIR)$(DOCDIR)/tazpkg
    1.87 -	# tazpanel files
    1.88 +	# TazPanel files
    1.89  	install -m 0755 -d $(DESTDIR)/var/www/tazpanel/menu.d
    1.90  	cp -a pkgs.cgi $(DESTDIR)/var/www/tazpanel
    1.91  	cp -a pkgs $(DESTDIR)/var/www/tazpanel/menu.d
    1.92 @@ -97,8 +84,8 @@
    1.93  	rm -rf _pkg
    1.94  	rm -rf tar-install
    1.95  	rm -rf po/mo
    1.96 -	rm -f po/*/*~
    1.97 -	rm -f po/*/*.mo
    1.98 +	rm -f po/*~
    1.99 +	rm -f po/*.mo
   1.100  	
   1.101  
   1.102  targz:
   1.103 @@ -112,3 +99,6 @@
   1.104  	cd -
   1.105  	
   1.106  	@echo "** Tarball successfully created in tar-install/${tarball}"
   1.107 +
   1.108 +help:
   1.109 +	@echo "make [ pot | msgmerge | msgfmt | all | install | uninstall | clear | targz ]"