[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] master: build: avoid ignored errors.
From: |
Akim Demaille |
Subject: |
[PATCH] master: build: avoid ignored errors. |
Date: |
Fri, 22 May 2009 16:13:41 +0200 |
* doc/local.mk ($(CROSS_OPTIONS_TEXI)): Don't generate ignored
errors, they pollute the output.
---
ChangeLog | 6 ++++++
doc/local.mk | 15 +++++++++------
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 34cb6fe..14eb499 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-05-25 Akim Demaille <address@hidden>
+
+ build: avoid ignored errors.
+ * doc/local.mk ($(CROSS_OPTIONS_TEXI)): Don't generate ignored
+ errors, they pollute the output.
+
2009-05-22 Joel E. Denny <address@hidden>
Convert multiple variable definition warnings to complaints.
diff --git a/doc/local.mk b/doc/local.mk
index d139790..cf68a98 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -1,5 +1,5 @@
-## Copyright (C) 2001, 2002, 2003, 2005, 2006, 2007, 2008 Free Software
-## Foundation, Inc.
+## Copyright (C) 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009
+## 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
@@ -29,11 +29,14 @@ clean-local:
CROSS_OPTIONS_PL = $(top_srcdir)/build-aux/cross-options.pl
CROSS_OPTIONS_TEXI = $(top_srcdir)/doc/cross-options.texi
$(CROSS_OPTIONS_TEXI): $(top_srcdir)/src/getargs.c $(CROSS_OPTIONS_PL)
- mv -f $@ address@hidden || : >address@hidden
- -rm -f address@hidden
+# Create address@hidden which is the previous contents. Don't use `mv' here so
+# that even if we are interrupted, the file is still available for
+# diff in the next run. Note that $@ might not exist yet.
+ { test ! -f $@ || cat $@; } >address@hidden
+ test ! -f address@hidden || rm -f address@hidden
$(MAKE) $(AM_MAKEFLAGS) src/bison$(EXEEXT)
- $(top_builddir)/src/bison --help | \
- perl $(CROSS_OPTIONS_PL) $(top_srcdir)/src/scan-gram.l >address@hidden
+ $(top_builddir)/src/bison --help | \
+ perl $(CROSS_OPTIONS_PL) $(top_srcdir)/src/scan-gram.l >address@hidden
diff -u address@hidden address@hidden || true
mv address@hidden $@
MAINTAINERCLEANFILES = $(CROSS_OPTIONS_TEXI)
--
1.6.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] master: build: avoid ignored errors.,
Akim Demaille <=