We have only one copy of the script for compare and install now
authorkeie <none@none>
Tue, 23 Oct 1984 15:14:17 +0000 (15:14 +0000)
committerkeie <none@none>
Tue, 23 Oct 1984 15:14:17 +0000 (15:14 +0000)
they are present in ../..

mach/6500/cg/Makefile
mach/pdp/cg/Makefile
mach/proto/cg/Makefile
mach/vax4/cg/Makefile
mach/z80/cg/Makefile
mach/z8000/cg/Makefile

index d9ceb73..9b810e6 100644 (file)
@@ -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)
index d9ceb73..9b810e6 100644 (file)
@@ -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)
index d9ceb73..9b810e6 100644 (file)
@@ -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)
index d9ceb73..9b810e6 100644 (file)
@@ -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)
index d9ceb73..9b810e6 100644 (file)
@@ -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)
index d9ceb73..9b810e6 100644 (file)
@@ -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)