Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Empty .pro files causing compiler warnings



Oliver Kiddle wrote:
>                                      The patch below fixes this on AIX
>by putting a comment in all .pro files but note no 'PATCH' in the
>subject. This is because GNU make doesn't seem to cope with the
>multi-line sed. Can someone who knows how to do multi-line commands in
>a Makefile please fix this up properly.

diff -c -u -r1.1.1.13 Makemod.in.in
--- Src/Makemod.in.in	2000/01/05 01:41:27	1.1.1.13
+++ Src/Makemod.in.in	2000/05/02 13:38:05
@@ -82,8 +82,10 @@
 	$(AWK) -f $(sdir_src)/makepro.awk $< $(subdir) > $@
 
 .syms.epro:
-	sed -n '/^E/{s/^E//;p;}' < $< > $@
-	sed -n '/^L/{s/^L//;p;}' < $< > `echo $@ | sed 's/\.epro$$/.pro/'`
+	(echo '/* Generated automatically */'; sed -n '/^E/{s/^E//;p;}' < $<) \
+		> $@
+	(echo '/* Generated automatically */'; sed -n '/^L/{s/^L//;p;}' < $<) \
+		> `echo $@ | sed 's/\.epro$$/.pro/'`
 
 PROTODEPS = $(sdir_src)/makepro.awk
 
diff -c -u -r1.179 ChangeLog
--- ChangeLog	2000/05/02 13:08:19	1.179
+++ ChangeLog	2000/05/02 13:39:09
@@ -1,3 +1,8 @@
+2000-05-02  Andrew Main  <zefram@xxxxxxx>
+
+	* zefram103: Src/Makemod.in.in: make sure .{e,}pro files are
+	non-empty, to keep the AIX compiler quiet.
+
 2000-05-02  Peter Stephenson  <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
 
 	* 11066: Src/exec.c: suppress doing in and/or when at the end

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author