[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-patch] [PATCH 02/15] maint: arrange for the sc_require_config_h_fir
From: |
Jim Meyering |
Subject: |
[bug-patch] [PATCH 02/15] maint: arrange for the sc_require_config_h_first test to pass |
Date: |
Sat, 26 Mar 2011 14:31:57 +0100 |
From: Jim Meyering <address@hidden>
* cfg.mk: New file, to configure maint.mk.
* Makefile.am (EXTRA_DIST): Add, so the new file is distributed.
(config_h_header): Define, to make the sc_require_config_h_first
syntax-check test pass.
* pc/chdirsaf.c: Include <config.h>.
---
Makefile.am | 1 +
cfg.mk | 21 +++++++++++++++++++++
pc/chdirsaf.c | 1 +
3 files changed, 23 insertions(+), 0 deletions(-)
create mode 100644 cfg.mk
diff --git a/Makefile.am b/Makefile.am
index 918c5eb..2cb86da 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,6 +22,7 @@ SUBDIRS = lib src tests
dist_man1_MANS = patch.man
EXTRA_DIST = \
ChangeLog-2011 \
+ cfg.mk \
m4/mkdir.m4 \
m4/setmode.m4 \
m4/utimbuf.m4 \
diff --git a/cfg.mk b/cfg.mk
new file mode 100644
index 0000000..819c1b5
--- /dev/null
+++ b/cfg.mk
@@ -0,0 +1,21 @@
+# Customize maint.mk -*- makefile -*-
+# Copyright (C) 2011 Free Software Foundation, Inc.
+
+# 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 <http://www.gnu.org/licenses/>.
+
+config_h_header = <(common|config)\.h>
+
+update-copyright-env = \
+ UPDATE_COPYRIGHT_USE_INTERVALS=1 \
+ UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79
diff --git a/pc/chdirsaf.c b/pc/chdirsaf.c
index 0598f78..8ad0591 100644
--- a/pc/chdirsaf.c
+++ b/pc/chdirsaf.c
@@ -1,6 +1,7 @@
/* A safer version of chdir, which returns back to the
initial working directory when the program exits. */
+#include <config.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
--
1.7.1.354.ge64bd
- [bug-patch] [PATCH 00/15] *** SUBJECT HERE ***, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 03/15] maint: add some m4 quoting, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 08/15] tests: temporarily disable failing syntax-check rules, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 01/15] maint: use gnulib's maintainer-makefile module, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 02/15] maint: arrange for the sc_require_config_h_first test to pass,
Jim Meyering <=
- [bug-patch] [PATCH 04/15] maint: remove trailing blanks, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 09/15] build: avoid three gcc warnings, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 15/15] build: don't turn off -Wmissing-declarations, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 13/15] maint: remove now-unneeded macro definitions, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 14/15] build: don't turn off -Wmissing-prototypes, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 05/15] maint: allow the sc_prohibit_empty_lines_at_EOF test to pass, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 07/15] build: accept new configure-time option --enable-gcc-warnings, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 06/15] maint: avoid non-portable use of test -a, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 11/15] maint: update bootstrap and gnulib submodule, Jim Meyering, 2011/03/26