mirror of
https://github.com/openharmony/third_party_gettext.git
synced 2026-07-19 13:17:36 -04:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 && \
|
||||
|
||||
Reference in New Issue
Block a user