From: Peter B. Kessler Date: Sat, 14 Aug 1982 06:32:26 +0000 (-0800) Subject: use new char version[]; add `make newversion' entry. X-Git-Tag: BSD-4_1c_2-Snapshot-Development~2739 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/7c79ee59fdf86a97443fa24fa100d44a8de91709 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 --- 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)); } }