Debian Codegraph @

etc/i18n.cook

raw
1 /*
2 * fstrcmp - fuzzy string compare library
3 * Copyright (C) 2009 Peter Miller
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 c_src_files =
20 [match_mask explain/%0%.c [source_files]]
21 [match_mask lib/%0%.c [source_files]]
22 ;
23
24 all += po/fstrcmp.pot;
25
26 po/fstrcmp.pot: [c_src_files]
27 etc/xgettext-postprocess.sh
28 {
29 xgettext
30 [addprefix "-D" [search_list]]
31 --files-from\=- /* read list of files from stdin */
32 --keyword\=i18n
33 --keyword\=gettext
34 --keyword\=explain_gettext
35 --add-comments
36
37 "--copyright-holder='Peter Miller <[email protected]>'"
38 "--msgid-bugs-address='Peter Miller <[email protected]>'"
39 --package-name\=fstrcmp
40 --package-version\=[version]
41 --width\=75
42 --sort-output
43 --force-po
44 -o [target]
45 ;
46 data
47 [unsplit "\n" [c_src_files]]
48 dataend
49 sh [resolve etc/xgettext-postprocess.sh] [target];
50 }
51
52 if [find_command msg-comment-check] then
53 all += check-po-comments;
54
55 check-po-comments: po/fstrcmp.pot
56 {
57 msg-comment-check [resolve po/fstrcmp.pot];
58 }
59
60 all += etc/manually-confirmed.merge;
61
62 etc/manually-confirmed.merge: po/fstrcmp.pot etc/manually-confirmed.po
63 {
64 msgmerge
65 --indent
66 --sort-output
67 --width\=75
68 -v -v
69 --no-location
70 --force-po
71 -o [target]
72 [resolve etc/manually-confirmed.po po/fstrcmp.pot]
73 ;
74
75 /*
76 * There should be no differences.
77 * If there are, this next command will show them and exit failure.
78 */
79 msgcmp --use-fuzzy
80 [resolve etc/manually-confirmed.po]
81 [resolve po/fstrcmp.pot]
82 ;
83
84 /*
85 * Only need the timestamp, discard the file contents.
86 */
87 #if 0
88 > [target];
89 #endif
90 }