use new char version[]; add `make newversion' entry.
authorPeter B. Kessler <peter@ucbvax.Berkeley.EDU>
Sat, 14 Aug 1982 06:32:26 +0000 (22:32 -0800)
committerPeter B. Kessler <peter@ucbvax.Berkeley.EDU>
Sat, 14 Aug 1982 06:32:26 +0000 (22:32 -0800)
SCCS-vsn: usr.bin/pascal/pxp/Makefile 1.4
SCCS-vsn: usr.bin/pascal/pxp/main.c 1.2

usr/src/usr.bin/pascal/pxp/Makefile
usr/src/usr.bin/pascal/pxp/main.c

index 00594e5..e70c1b4 100644 (file)
@@ -1,8 +1,7 @@
-SCCSID = "@(#)Makefile 1.3 (Berkeley) %G%"
+SCCSID = "@(#)Makefile 1.4 (Berkeley) %G%"
 DESTDIR=
 ED=    -ex
 AS=    -as
 DESTDIR=
 ED=    -ex
 AS=    -as
-VERSION= version
 EYACC= /usr/ucb/eyacc
 CFLAGS=        -O -DPXP -w
 OBJS=  call.o case.o const.o cset.o \
 EYACC= /usr/ucb/eyacc
 CFLAGS=        -O -DPXP -w
 OBJS=  call.o case.o const.o cset.o \
@@ -28,6 +27,12 @@ y.tab.c: pas.y
        ${EYACC} pas.y
        ${ED} - y.tab.c < gram
 
        ${EYACC} pas.y
        ${ED} - y.tab.c < gram
 
+version: version.c Version.o
+       cc -o version version.c Version.o
+
+newversion: version
+       version > Version.c
+
 clean:
        -rm -f pi1:2strings a.out core
        -rm -f *.o x* y.tab.c y.tab.h
 clean:
        -rm -f pi1:2strings a.out core
        -rm -f *.o x* y.tab.c y.tab.h
index 8fa9392..6036305 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)main.c      1.1 (Berkeley) %G%";
+static char *sccsid = "@(#)main.c      1.2 (Berkeley) %G%";
 /* Copyright (c) 1979 Regents of the University of California */
 #
 /*
 /* Copyright (c) 1979 Regents of the University of California */
 #
 /*
@@ -213,7 +213,8 @@ header()
        }
        reenter++;
        if (profile || table) {
        }
        reenter++;
        if (profile || table) {
-               printf("Berkeley Pascal PXP -- Version 1.1 (%s)\n\n%s  %s\n\n", version, myctime(&tvec), filename);
+               printf("Berkeley Pascal PXP -- Version %s\n\n%s  %s\n\n",
+                       version, myctime(&tvec), filename);
                printf("Profiled %s\n\n", myctime(&ptvec));
        }
 }
                printf("Profiled %s\n\n", myctime(&ptvec));
        }
 }