blob: 71f47814c139294fc11bdc4a554aa339b6e2fdf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-ae,v 1.1 2006/05/21 11:17:28 rillig Exp $
GNU Make does not strip the line-continuation backslashes before
executing the shell. This confuses Perl.
In addition, it is bad style to pipe directly into the target file in
Make, since in a second run Make will assume the target file has been
updated properly.
--- main/Makefile.in.orig 2004-10-27 11:06:43.000000000 +0200
+++ main/Makefile.in 2006-05-21 13:06:28.000000000 +0200
@@ -72,6 +72,6 @@ enquiry.o: archtable.h
archtable.h: $(top_srcdir)/archtable
expand $< | \
- perl -ne 'print " { \"$$1\",$$2\"$$3\",$$4\"$$5\" },\n" \
- if m/^(?!\s*#)\s*(\S+)(\s+)(\S+)(\s+)(\S+)\s*$$/' \
- >$@
+ perl -ne 'print " { \"$$1\",$$2\"$$3\",$$4\"$$5\" },\n" if m/^(?!\s*#)\s*(\S+)(\s+)(\S+)(\s+)(\S+)\s*$$/' \
+ >$@.tmp
+ mv $@.tmp $@
|