From 5ff78ede5ea1a80c654d3f0684cd5f36d5253ae1 Mon Sep 17 00:00:00 2001 From: cgd Date: Tue, 21 Mar 1995 15:03:38 +0000 Subject: clean up import --- caesar/Makefile | 8 ++++++-- caesar/caesar.6 | 20 +++++++++++++------- caesar/caesar.c | 19 ++++++++++++------- caesar/rot13.sh | 1 + 4 files changed, 32 insertions(+), 16 deletions(-) (limited to 'caesar') diff --git a/caesar/Makefile b/caesar/Makefile index fe9d2272..c2fefd8f 100644 --- a/caesar/Makefile +++ b/caesar/Makefile @@ -1,5 +1,5 @@ -# from: @(#)Makefile 5.2 (Berkeley) 5/11/90 -# $Id: Makefile,v 1.3 1994/12/22 09:33:32 cgd Exp $ +# $NetBSD: Makefile,v 1.4 1995/03/21 15:08:18 cgd Exp $ +# @(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= caesar MAN= caesar.6 @@ -7,4 +7,8 @@ DPADD= ${LIBM} LDADD= -lm MLINKS= caesar.6 rot13.6 +beforeinstall: + install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/rot13.sh ${DESTDIR}/usr/games/rot13 + .include diff --git a/caesar/caesar.6 b/caesar/caesar.6 index 76dc20a6..12615368 100644 --- a/caesar/caesar.6 +++ b/caesar/caesar.6 @@ -1,5 +1,7 @@ -.\" Copyright (c) 1989 The Regents of the University of California. -.\" All rights reserved. +.\" $NetBSD: caesar.6,v 1.4 1995/03/21 15:08:20 cgd Exp $ +.\" +.\" Copyright (c) 1989, 1991, 1993 +.\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -29,10 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" from: @(#)caesar.6 5.3 (Berkeley) 11/11/90 -.\" $Id: caesar.6,v 1.3 1993/08/05 01:46:33 jtc Exp $ +.\" @(#)caesar.6 8.2 (Berkeley) 11/16/93 .\" -.Dd November 11, 1990 +.Dd November 16, 1993 .Dt CAESAR 6 .Os .Sh NAME @@ -54,17 +55,22 @@ The optional numerical argument may be used to specify a specific rotation value. .Pp The frequency (from most common to least) of English letters is as follows: +.Pp .Bd -filled -offset indent ETAONRISHDLFCMUGPYWBVKXJQZ .Ed .Pp Their frequencies as a percentage are as follows: +.Pp .Bd -filled -offset indent E(13), T(10.5), A(8.1), O(7.9), N(7.1), R(6.8), I(6.3), S(6.1), H(5.2), -D(3.8), L(3.4), F(2.9), C(2.7), M(2.5), U(2.4), G(2), P(1.9), Y(1.9), +D(3.8), L(3.4), F(2.9), C(2.7), M(2.5), U(2.4), G(2), +P(1.9), Y(1.9), W(1.5), B(1.4), V(.9), K(.4), X(.15), J(.13), Q(.11), Z(.07). .Ed .Pp -Rotated postings to USENET and some of the databases used by the +Rotated postings to +.Tn USENET +and some of the databases used by the .Xr fortune 6 program are rotated by 13 characters. diff --git a/caesar/caesar.c b/caesar/caesar.c index 6c968bd2..de5a2e8a 100644 --- a/caesar/caesar.c +++ b/caesar/caesar.c @@ -1,6 +1,8 @@ +/* $NetBSD: caesar.c,v 1.3 1995/03/21 15:08:21 cgd Exp $ */ + /* - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. + * Copyright (c) 1989, 1993 + * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Rick Adams. @@ -40,14 +42,17 @@ */ #ifndef lint -char copyright[] = -"@(#) Copyright (c) 1989 The Regents of the University of California.\n\ - All rights reserved.\n"; +static char copyright[] = +"@(#) Copyright (c) 1989, 1993\n\ + The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint -/*static char sccsid[] = "from: @(#)caesar.c 5.4 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: caesar.c,v 1.2 1993/08/01 18:55:37 mycroft Exp $"; +#if 0 +static char sccsid[] = "@(#)caesar.c 8.1 (Berkeley) 5/31/93"; +#else +static char rcsid[] = "$NetBSD: caesar.c,v 1.3 1995/03/21 15:08:21 cgd Exp $"; +#endif #endif /* not lint */ #include diff --git a/caesar/rot13.sh b/caesar/rot13.sh index 93fb9355..66297fd0 100644 --- a/caesar/rot13.sh +++ b/caesar/rot13.sh @@ -1,4 +1,5 @@ #!/bin/sh - +# $NetBSD: rot13.sh,v 1.2 1995/03/21 15:08:23 cgd Exp $ # # Copyright (c) 1992, 1993 # The Regents of the University of California. All rights reserved. -- cgit v1.2.3-56-ge451