* Empty .pro files causing compiler warnings
@ 2000-05-02 11:51 Oliver Kiddle
2000-05-02 13:41 ` Zefram
0 siblings, 1 reply; 2+ messages in thread
From: Oliver Kiddle @ 2000-05-02 11:51 UTC (permalink / raw)
To: Zsh workers
When compiling under AIX, I get loads of warnings complaining about a
number of the .pro files being empty. 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. If that isn't possible, I'll
think up another way.
This isn't critical because as I said, they are only warnings so all
they do is detract from the real information and don't make it look very
professional.
Oliver
--- Src/Makemod.in.in.bak Wed Jan 5 01:41:27 2000
+++ Src/Makemod.in.in Mon May 1 18:05:54 2000
@@ -83,7 +83,8 @@
.syms.epro:
sed -n '/^E/{s/^E//;p;}' < $< > $@
- sed -n '/^L/{s/^L//;p;}' < $< > `echo $@ | sed 's/\.epro$$/.pro/'`
+ sed -n -e '1i\
+/* Generated automatically */' -e '/^L/{s/^L//;p;}' < $< > `echo $@ | sed 's/\.epro$$/.pro/'`
PROTODEPS = $(sdir_src)/makepro.awk
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Empty .pro files causing compiler warnings
2000-05-02 11:51 Empty .pro files causing compiler warnings Oliver Kiddle
@ 2000-05-02 13:41 ` Zefram
0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 2000-05-02 13:41 UTC (permalink / raw)
To: Oliver Kiddle; +Cc: Zsh workers
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@zsh.org>
+
+ * 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@cambridgesiliconradio.com>
* 11066: Src/exec.c: suppress doing in and/or when at the end
-zefram
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-05-02 13:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-02 11:51 Empty .pro files causing compiler warnings Oliver Kiddle
2000-05-02 13:41 ` Zefram
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).