From 7c79ee59fdf86a97443fa24fa100d44a8de91709 Mon Sep 17 00:00:00 2001 From: "Peter B. Kessler" Date: Fri, 13 Aug 1982 22:32:26 -0800 Subject: [PATCH] use new char version[]; add `make newversion' entry. 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 | 9 +++++++-- usr/src/usr.bin/pascal/pxp/main.c | 5 +++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/usr/src/usr.bin/pascal/pxp/Makefile b/usr/src/usr.bin/pascal/pxp/Makefile index 00594e582b..e70c1b43f2 100644 --- a/usr/src/usr.bin/pascal/pxp/Makefile +++ b/usr/src/usr.bin/pascal/pxp/Makefile @@ -1,8 +1,7 @@ -SCCSID = "@(#)Makefile 1.3 (Berkeley) %G%" +SCCSID = "@(#)Makefile 1.4 (Berkeley) %G%" DESTDIR= ED= -ex AS= -as -VERSION= version 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 +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 diff --git a/usr/src/usr.bin/pascal/pxp/main.c b/usr/src/usr.bin/pascal/pxp/main.c index 8fa9392cc2..6036305a49 100644 --- a/usr/src/usr.bin/pascal/pxp/main.c +++ b/usr/src/usr.bin/pascal/pxp/main.c @@ -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 */ # /* @@ -213,7 +213,8 @@ header() } 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)); } } -- 2.20.1