copy in from cvs; cvs2svn fucked up big time

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@9775 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2003-12-19 19:12:08 +00:00
parent 351c8ca204
commit 51eabc017b
310 changed files with 7852 additions and 5005 deletions

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: wtf.6,v 1.3 1999/07/25 20:29:04 briggs Exp $
.\" $NetBSD: wtf.6,v 1.5 2002/09/26 16:12:44 wiz Exp $
.\"
.\" Public Domain
.\"
@@ -15,8 +15,9 @@
.Sh DESCRIPTION
The
.Nm
utility displays the expansion of the acronyms
specified on the command line. If the acronym is unknown,
utility displays the expansion of the acronyms
specified on the command line.
If the acronym is unknown,
.Nm
will check to see if the acronym is known by the
.Xr whatis 1
@@ -25,7 +26,7 @@ command.
If
.Dq is
is specified on the command line, it will be ignored, allowing the
fairly natural
fairly natural
.Dq wtf is WTF
usage.
.Sh ENVIRONMENT

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: wtf,v 1.5 1999/08/13 03:02:06 sommerfeld Exp $
# $NetBSD: wtf,v 1.8 2003/02/06 15:17:01 salo Exp $
#
# Public domain
#
@@ -12,14 +12,14 @@ if [ X"$1" = X"is" ] ; then
fi
if [ $# -lt 1 ] ; then
echo "Usage: $0 [is] <acronym>"
echo "Usage: `basename $0` [is] <acronym>"
fi
rv=0
while [ $# -gt 0 ] ; do
target=`echo $1 | tr '[a-z]' '[A-Z]'`
ans=`sed -ne "/^$target[[:space:]]/s/^$target[[:space:]]*//p" \
< $acronyms 2>/dev/null`
ans=`fgrep $target < $acronyms 2>/dev/null \
| sed -ne "\|^$target[[:space:]]|s|^$target[[:space:]]*||p"`
if [ "$ans" != "" ] ; then
echo "$target: $ans"
else