From d08a55f17ef0abcb3bf7f3034acb9ddbc16782df Mon Sep 17 00:00:00 2001 From: gdr-ftp Date: Sun, 15 Feb 1998 00:25:48 +0000 Subject: [PATCH] Makefile: - put cksum in /usr/bin vice /bin cksum.1: - added "sum" to the NAME section so that whatis(1) gets a hit cksum.rez: - added (initial test) of automatically displaying the build date. mkso.data: - used for making man page ".so links" mklink.data: - used to replicate cksum(1) as sum(1) --- usr.bin/cksum/Makefile | 4 ++-- usr.bin/cksum/cksum.1 | 5 +++-- usr.bin/cksum/cksum.rez | 14 +++++++++----- usr.bin/cksum/mklink.data | 9 +++++++++ usr.bin/cksum/mkso.data | 9 +++++++++ 5 files changed, 32 insertions(+), 9 deletions(-) create mode 100755 usr.bin/cksum/mklink.data create mode 100755 usr.bin/cksum/mkso.data diff --git a/usr.bin/cksum/Makefile b/usr.bin/cksum/Makefile index 70ac9a1..1be7db4 100644 --- a/usr.bin/cksum/Makefile +++ b/usr.bin/cksum/Makefile @@ -1,13 +1,13 @@ # # This makefile is intended for use with dmake(1) on Apple IIGS -# $Id: Makefile,v 1.1 1998/01/16 04:16:10 gdr Exp $ +# $Id: Makefile,v 1.2 1998/02/15 00:25:42 gdr-ftp Exp $ # # Created by Dave Tribby, December 1997 PROG= cksum SRCS= cksum.c crc.c print.c sum1.c sum2.c crc32.c +BINDIR= /usr/bin -CFLAGS = -v .INCLUDE : /src/gno/prog.mk # Under UNIX, chsum whould be linked to sum (and cksum.1 to sum.1) diff --git a/usr.bin/cksum/cksum.1 b/usr.bin/cksum/cksum.1 index 161149c..dcd3a63 100644 --- a/usr.bin/cksum/cksum.1 +++ b/usr.bin/cksum/cksum.1 @@ -33,11 +33,12 @@ .\" SUCH DAMAGE. .\" .\" @(#)cksum.1 8.2 (Berkeley) 4/28/95 -.\" $Id: cksum.1,v 1.1 1998/01/16 04:16:10 gdr Exp $ +.\" $Id: cksum.1,v 1.2 1998/02/15 00:25:44 gdr-ftp Exp $ .\" .TH CKSUM 1 "December 1997" "GNO" "Commands and Applications" .SH NAME -.BR cksum +.BR cksum , +.BR sum \- display file checksums and block counts .SH SYNOPSIS .BR cksum diff --git a/usr.bin/cksum/cksum.rez b/usr.bin/cksum/cksum.rez index 1e64faf..b1315ed 100644 --- a/usr.bin/cksum/cksum.rez +++ b/usr.bin/cksum/cksum.rez @@ -1,11 +1,13 @@ /* * Resources for version and comment - * $Id: cksum.rez,v 1.1 1998/01/16 04:16:11 gdr Exp $ + * + * $Id: cksum.rez,v 1.2 1998/02/15 00:25:46 gdr-ftp Exp $ */ #define PROG "cksum/sum" -#define DESC "Display file checksums and block counts" +#define DESC "Display file checksums and block counts." #include "Types.rez" +#include "/src/gno/build.tools/builddate.rez" /* * Version @@ -16,7 +18,8 @@ resource rVersion (1, purgeable3) { 0 }, /* non-final release number */ verUS, /* Country */ PROG, /* Program name */ - DESC " Released with GNO/ME." + DESC "\nReleased with GNO/ME.\n" + BUILD_DATE }; @@ -24,7 +27,8 @@ resource rVersion (1, purgeable3) { * Comment */ resource rComment (1, purgeable3) { - PROG " v2.0 (December 1997)\n" + PROG " v2.0\n" "GNO utility: " DESC "\n" - "Ported from FreeBSD code by Dave Tribby." + "Ported from FreeBSD code by Dave Tribby.\n" + BUILD_DATE }; diff --git a/usr.bin/cksum/mklink.data b/usr.bin/cksum/mklink.data new file mode 100755 index 0000000..24746f3 --- /dev/null +++ b/usr.bin/cksum/mklink.data @@ -0,0 +1,9 @@ +# 0 +# 1 The first column is the "real" program; the second is what _should_ +# 2 be the symlink, but for now is a copy. +# 3 All paths should be relative to the root directory. This list +# 4 should be kept sorted. +# 5 +# 6 $Id: mklink.data,v 1.1 1998/02/15 00:25:47 gdr-ftp Exp $ +# 7 +usr/bin/cksum usr/bin/sum diff --git a/usr.bin/cksum/mkso.data b/usr.bin/cksum/mkso.data new file mode 100755 index 0000000..2115cbf --- /dev/null +++ b/usr.bin/cksum/mkso.data @@ -0,0 +1,9 @@ +# 0 +# 1 The first column is the "real" man page; the second is the .so link. +# 2 All paths should be relative to the /usr/man directory. This list +# 3 should be kept sorted. +# 4 +# 5 $Id: mkso.data,v 1.1 1998/02/15 00:25:48 gdr-ftp Exp $ +# 6 +man1/cksum.1 man1/sum.1 +