diff options
author | Daiki Ueno <ueno@gnu.org> | 2015-09-01 11:18:17 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2015-09-01 11:18:17 +0900 |
commit | e4ec2e69c54d331cfaabbddb519eec4be49a58da (patch) | |
tree | b9aa015a6e9570f10c707297af4e871998bbdfd8 /gettext-runtime | |
parent | 26dd339d2c1e17b10da02309562bcf12017a2f9a (diff) | |
download | external_gettext-e4ec2e69c54d331cfaabbddb519eec4be49a58da.zip external_gettext-e4ec2e69c54d331cfaabbddb519eec4be49a58da.tar.gz external_gettext-e4ec2e69c54d331cfaabbddb519eec4be49a58da.tar.bz2 |
po: Support reading header comments from file
* Makefile.in.in ($(DOMAIN).pot-update): Replace header comment
with the content of $(DOMAIN).pot-header, if exists.
Diffstat (limited to 'gettext-runtime')
-rw-r--r-- | gettext-runtime/po/ChangeLog | 5 | ||||
-rw-r--r-- | gettext-runtime/po/Makefile.in.in | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gettext-runtime/po/ChangeLog b/gettext-runtime/po/ChangeLog index e5d8f0d..bdd7ffd 100644 --- a/gettext-runtime/po/ChangeLog +++ b/gettext-runtime/po/ChangeLog @@ -1,3 +1,8 @@ +2015-09-01 Daiki Ueno <ueno@gnu.org> + + * Makefile.in.in ($(DOMAIN).pot-update): Replace header comment + with the content of $(DOMAIN).pot-header, if exists. + 2015-07-10 Daiki Ueno <ueno@gnu.org> * gettext 0.19.5 released. diff --git a/gettext-runtime/po/Makefile.in.in b/gettext-runtime/po/Makefile.in.in index c36f1ad..dbe8c20 100644 --- a/gettext-runtime/po/Makefile.in.in +++ b/gettext-runtime/po/Makefile.in.in @@ -195,6 +195,11 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed ;; \ esac test ! -f $(DOMAIN).po || { \ + if test -f $(srcdir)/$(DOMAIN).pot-header; then \ + sed -e '1,/^#$$/d' < $(DOMAIN).po > $(DOMAIN).1po && \ + cat $(srcdir)/$(DOMAIN).pot-header $(DOMAIN).1po > $(DOMAIN).po; \ + rm -f $(DOMAIN).1po; \ + fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ |