Mercurial > geeqie.yaz
view po/Makefile.in.in.patch @ 737:8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
This allows users to modify the shell command that execute "editors".
Two new options appear in rc file:
- shell.path (default to "/bin/sh")
- shell.options (default to "-c")
These options can only be changed from the rc file, not at runtime.
Tests are made to check that shell.path is not empty and lead to
an executable file.
author | zas_ |
---|---|
date | Thu, 22 May 2008 20:22:13 +0000 |
parents | 53cfc5af7fd7 |
children | 240cf36c9a44 |
line wrap: on
line source
--- Makefile.in.in 2008-04-19 14:36:53.000000000 +0200 +++ Makefile.in.in.new 2008-04-19 14:39:19.000000000 +0200 @@ -216,7 +216,30 @@ || cp -p $(srcdir)/$$file $(distdir); \ done -update-po: Makefile +### Updating po and gmo files +# +# Update by merging all .po files with the .po template master file. +# +# It is possible to update only a single .po file by setting the PO variable to +# either <lang> or <lang>.po when calling make. Example: make update-po PO=is + +update-po: Makefile $(GETTEXT_PACKAGE).pot + @cd $(srcdir); \ + $(foreach lang,$(basename $(if $(strip $(PO)),$(PO),$(CATALOGS))), \ + echo -n "$(lang): "; \ + if $(MSGMERGE) $(lang).po $(GETTEXT_PACKAGE).pot -o $(lang).new.po; then \ + mv -f $(lang).new.po $(lang).po; \ + else \ + echo "msgmerge failed!"; \ + rm -f $(lang).new.po; \ + fi; \ + ) + $(MAKE) update-gmo + +update-gmo: Makefile $(CATALOGS) + @: + +update-po-orig: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ cd $(srcdir); \