/* * libexplain - Explain errno values returned by libc functions * Copyright (C) 2008-2010, 2012 Peter Miller * Written by Peter Miller * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ c_src_files = [match_mask explain/%0%.c [source_files]] [match_mask libexplain/%0%.c [source_files]] ; all += po/libexplain.pot; po/libexplain.pot: [c_src_files] etc/xgettext-postprocess.sh { function quiet_print Generate; xgettext [addprefix "-D" [search_list]] --files-from\=- /* read list of files from stdin */ --keyword\=i18n --keyword\=gettext --keyword\=explain_gettext --add-comments "--copyright-holder='Peter Miller '" "--msgid-bugs-address='Peter Miller '" --package-name\=libexplain --package-version\=[version] --width\=75 --sort-output -o [target] ; data [unsplit "\n" [c_src_files]] dataend sh [resolve etc/xgettext-postprocess.sh] [target]; } if [find_command msg-comment-check] then all += check-po-comments; check-po-comments: po/libexplain.pot { /* this is from Peter's junkyard project */ msg-comment-check [resolve po/libexplain.pot]; } all += etc/manually-confirmed.merge; etc/manually-confirmed.merge: po/libexplain.pot etc/manually-confirmed.po { function quiet_print Check; msgmerge --indent --sort-output --width\=75 -v -v --no-location --force-po -o [target] [resolve etc/manually-confirmed.po po/libexplain.pot] ; echo >> [target]; echo "'# vim: set ts=8 sw=4 et :'" >> [target]; /* * There should be no differences. * If there are, this next command will show them and exit failure. */ msgcmp --use-fuzzy [resolve etc/manually-confirmed.po] [resolve po/libexplain.pot] ; if [defined baseline] then { /* check ordering and formatting as well */ diff etc/manually-confirmed.po [target] set nosilent; } /* * Only need the timestamp, discard the file contents. */ /* > [target]; */ } /* vim: set ts=8 sw=4 et : */