[Libguestfs] [PATCH hivex 08/14] maint: remove trailing blanks

Jim Meyering jim at meyering.net
Tue Jun 28 23:21:05 UTC 2011


Richard W.M. Jones wrote:
> On Tue, Jun 28, 2011 at 08:09:51PM +0200, Jim Meyering wrote:
>> diff --git a/sh/hivexsh.pod b/sh/hivexsh.pod
>> index a31d9e0..7d7fc0a 100644
>> --- a/sh/hivexsh.pod
>> +++ b/sh/hivexsh.pod
>> @@ -30,13 +30,13 @@ Or you can start C<hivexsh> without any arguments, and immediately use
>>  the C<load> command to load a hive:
>>
>>   $ hivexsh
>> -
>> +
>
> [etc]
>
> For POD files it's correct to have "\n \n" because this indicates a
> block of verbatim text.

Oh well, then we can exempt that one file from the test.
I've added that to the patch I'd omitted.

>From 2f39bb4c6455aeb198c64b9a9dc40e8d8456d8fd Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Tue, 28 Jun 2011 18:44:23 +0200
Subject: [PATCH hivex] maint: add cfg.mk to prepare for syntax-check tests

* cfg.mk: New file, to tell maint.mk which syntax-checks to skip
for now, where .gnulib/ is, to exempt images/minimal from
one of the tests and to exempt sh/hivexsh\.pod from another.
Also exempt lib/gettext.h from sc_useless_cpp_parens.
---
 cfg.mk |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 cfg.mk

diff --git a/cfg.mk b/cfg.mk
new file mode 100644
index 0000000..c1334fe
--- /dev/null
+++ b/cfg.mk
@@ -0,0 +1,21 @@
+# Tests not to run as part of "make distcheck".
+local-checks-to-skip =			\
+  sc_prohibit_strcmp			\
+  sc_two_space_separator_in_usage	\
+  sc_prohibit_magic_number_exit		\
+  sc_file_system			\
+  sc_GPL_version			\
+  sc_bindtextdomain			\
+  sc_makefile_path_separator_check	\
+  sc_program_name
+
+gnulib_dir = .gnulib
+
+exclude_file_name_regexp--sc_trailing_blank = \
+  ^sh/hivexsh\.pod$$
+
+exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
+  ^images/minimal$$
+
+exclude_file_name_regexp--sc_useless_cpp_parens = \
+  ^lib/gettext\.h$$
--
1.7.6.rc2.302.gc2115




More information about the Libguestfs mailing list