Makefile.msg.targ (6f5e83461ae9f7c7a376790c78ae0b9bb3110623) Makefile.msg.targ (7b07063d906859b2be1e88791f801b3c96e432f6)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 7 unchanged lines hidden (view full) ---

16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23# Use is subject to license terms.
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 7 unchanged lines hidden (view full) ---

16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23# Use is subject to license terms.
24# Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
24#
25# Makefile.msg.targ
26#
27
28#
29# This file contains common targets for building message catalogues.
30# Over time, existing Makefiles should be rewritten to include this file
31# rather than use their own private copy of these rules.

--- 16 unchanged lines hidden (view full) ---

48 $(XGETTEXT) $(XGETFLAGS) $(MSGFILES); \
49 $(SED) -e '/^\# msgid/,/^\# msgstr/d' -e '/^domain/d' \
50 -e '/^\#$$/d' -e '/^\#, /d' \
51 messages.po $(TEXT_DOMAIN).po > $(POFILE); \
52 $(RM) messages.po $(TEXT_DOMAIN).po
53
54BUILDPO.pofiles = \
55 $(RM) $(POFILE); \
25#
26# Makefile.msg.targ
27#
28
29#
30# This file contains common targets for building message catalogues.
31# Over time, existing Makefiles should be rewritten to include this file
32# rather than use their own private copy of these rules.

--- 16 unchanged lines hidden (view full) ---

49 $(XGETTEXT) $(XGETFLAGS) $(MSGFILES); \
50 $(SED) -e '/^\# msgid/,/^\# msgstr/d' -e '/^domain/d' \
51 -e '/^\#$$/d' -e '/^\#, /d' \
52 messages.po $(TEXT_DOMAIN).po > $(POFILE); \
53 $(RM) messages.po $(TEXT_DOMAIN).po
54
55BUILDPO.pofiles = \
56 $(RM) $(POFILE); \
56 $(NAWK) '\
57 $(AWK) '\
57 FNR == 1 { print "\# Messages from " FILENAME; } \
58 /^domain/ { next; } \
59 /^msgid/, /^msgstr/ { msg = msg "\n" $$0; \
60 if ( $$0 !~ /^msgstr/ ) next; \
61 if (msg in messages) { \
62 gsub(/\n/, "\n\# ", msg); \
63 } else { \
64 messages[msg] = 1; \

--- 14 unchanged lines hidden ---
58 FNR == 1 { print "\# Messages from " FILENAME; } \
59 /^domain/ { next; } \
60 /^msgid/, /^msgstr/ { msg = msg "\n" $$0; \
61 if ( $$0 !~ /^msgstr/ ) next; \
62 if (msg in messages) { \
63 gsub(/\n/, "\n\# ", msg); \
64 } else { \
65 messages[msg] = 1; \

--- 14 unchanged lines hidden ---