From: keie Date: Tue, 23 Oct 1984 15:14:17 +0000 (+0000) Subject: We have only one copy of the script for compare and install now X-Git-Tag: release-5-5~6042 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=828b4d62c9c7c3fd93d8742863e9b1544c50babb;p=ack.git We have only one copy of the script for compare and install now they are present in ../.. --- diff --git a/mach/6500/cg/Makefile b/mach/6500/cg/Makefile index d9ceb73f9..9b810e6d3 100644 --- a/mach/6500/cg/Makefile +++ b/mach/6500/cg/Makefile @@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c cc -c $(CFLAGS) $(CDIR)/var.c install: all - ../install cg + ../../install cg cmp: all - -../compare cg + -../../compare cg tables.c: table - ../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out - -cmp -s tables.h tables.H || mv tables.H tables.h + -mv tables.h tables.h.save + /lib/cpp -P table | ../../../lib/cgg > debug.out + -if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi + -if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi lint: $(CFILES) lint $(LINTOPTS) $(PREFLAGS) $(CFILES) diff --git a/mach/pdp/cg/Makefile b/mach/pdp/cg/Makefile index d9ceb73f9..9b810e6d3 100644 --- a/mach/pdp/cg/Makefile +++ b/mach/pdp/cg/Makefile @@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c cc -c $(CFLAGS) $(CDIR)/var.c install: all - ../install cg + ../../install cg cmp: all - -../compare cg + -../../compare cg tables.c: table - ../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out - -cmp -s tables.h tables.H || mv tables.H tables.h + -mv tables.h tables.h.save + /lib/cpp -P table | ../../../lib/cgg > debug.out + -if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi + -if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi lint: $(CFILES) lint $(LINTOPTS) $(PREFLAGS) $(CFILES) diff --git a/mach/proto/cg/Makefile b/mach/proto/cg/Makefile index d9ceb73f9..9b810e6d3 100644 --- a/mach/proto/cg/Makefile +++ b/mach/proto/cg/Makefile @@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c cc -c $(CFLAGS) $(CDIR)/var.c install: all - ../install cg + ../../install cg cmp: all - -../compare cg + -../../compare cg tables.c: table - ../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out - -cmp -s tables.h tables.H || mv tables.H tables.h + -mv tables.h tables.h.save + /lib/cpp -P table | ../../../lib/cgg > debug.out + -if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi + -if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi lint: $(CFILES) lint $(LINTOPTS) $(PREFLAGS) $(CFILES) diff --git a/mach/vax4/cg/Makefile b/mach/vax4/cg/Makefile index d9ceb73f9..9b810e6d3 100644 --- a/mach/vax4/cg/Makefile +++ b/mach/vax4/cg/Makefile @@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c cc -c $(CFLAGS) $(CDIR)/var.c install: all - ../install cg + ../../install cg cmp: all - -../compare cg + -../../compare cg tables.c: table - ../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out - -cmp -s tables.h tables.H || mv tables.H tables.h + -mv tables.h tables.h.save + /lib/cpp -P table | ../../../lib/cgg > debug.out + -if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi + -if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi lint: $(CFILES) lint $(LINTOPTS) $(PREFLAGS) $(CFILES) diff --git a/mach/z80/cg/Makefile b/mach/z80/cg/Makefile index d9ceb73f9..9b810e6d3 100644 --- a/mach/z80/cg/Makefile +++ b/mach/z80/cg/Makefile @@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c cc -c $(CFLAGS) $(CDIR)/var.c install: all - ../install cg + ../../install cg cmp: all - -../compare cg + -../../compare cg tables.c: table - ../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out - -cmp -s tables.h tables.H || mv tables.H tables.h + -mv tables.h tables.h.save + /lib/cpp -P table | ../../../lib/cgg > debug.out + -if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi + -if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi lint: $(CFILES) lint $(LINTOPTS) $(PREFLAGS) $(CFILES) diff --git a/mach/z8000/cg/Makefile b/mach/z8000/cg/Makefile index d9ceb73f9..9b810e6d3 100644 --- a/mach/z8000/cg/Makefile +++ b/mach/z8000/cg/Makefile @@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c cc -c $(CFLAGS) $(CDIR)/var.c install: all - ../install cg + ../../install cg cmp: all - -../compare cg + -../../compare cg tables.c: table - ../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out - -cmp -s tables.h tables.H || mv tables.H tables.h + -mv tables.h tables.h.save + /lib/cpp -P table | ../../../lib/cgg > debug.out + -if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi + -if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi lint: $(CFILES) lint $(LINTOPTS) $(PREFLAGS) $(CFILES)