Initial revision

git-svn-id: file:///srv/svn/joey/bsdgames-trunk@5099 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
1999-09-26 21:23:21 +00:00
parent b0928da4f8
commit 5d36ad0e9e
59 changed files with 8401 additions and 0 deletions

7
wtf/Makefile.bsd Normal file
View File

@@ -0,0 +1,7 @@
# $NetBSD: Makefile,v 1.1 1999/07/22 01:03:20 mrg Exp $
SCRIPTS= wtf
SCRIPTSDIR= /usr/games
MAN= wtf.6
.include <bsd.prog.mk>

37
wtf/Makefrag Normal file
View File

@@ -0,0 +1,37 @@
# Makefrag - makefile fragment for wtf
#
# Copyright (c) 1999 Joseph Samuel Myers.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
wtf_DIRS := $(GAMESDIR) $(MAN6DIR) $(shell dirname $(WTF_ACRONYMFILE))
wtf_all: wtf/wtf wtf/wtf.6
wtf_install: wtf_all
$(INSTALL_SCRIPT) wtf/wtf $(INSTALL_PREFIX)$(GAMESDIR)/wtf
$(HIDE_GAME) wtf
$(INSTALL_DATA) wtf/acronyms $(INSTALL_PREFIX)$(WTF_ACRONYMFILE)
$(INSTALL_MANUAL) wtf/wtf.6

91
wtf/acronyms Normal file
View File

@@ -0,0 +1,91 @@
$NetBSD: acronyms,v 1.40 1999/09/16 12:47:31 kleink Exp $
AFAICR as far as I can recall
AFAICT as far as I can tell
AFAIK as far as I know
AFAIR as far as I recall
AFK away from keyboard
ASAP as soon as possible
BBL [I'll] be back later
BBS be back soon
BFD big fucking deal
BIAB back in a bit
BIAF back in a few
BIAS back in a second
BIAW back in a while
BRB [I'll] be right back
BTTH butt to the head
BTW by the way
CMIIW correct me if I'm wrong
CNP continued [in my] next post
DNDK don't know, don't care
DTRT do the right thing
DTWT do the wrong thing
DWIM do what I mean
EG evil grin
EMSG email message
ETLA extended three letter acronym
FSDO for some definition of
FUBAR fucked up beyond all recognition
FUD fear, uncertianty and doubt
FWIW for what it's worth
FYI for your information
G grin
GMTA great minds think alike
HHIS hanging head in shame
HTH hope this helps
IANAL I am not a lawyer
IIANM if I am not mistaken
IIRC if I recall correctly
IMCO in my considered opinion
IMHO in my humble opinion
IMNSHO in my not so humble opinion
IMO in my opinion
IOW in other words
IRL in real life
ISTM it seems to me
ISTR I seem to recall
JMO just my opinion
JTLYK just to let you know
KISS keep it simple, stupid
L8R later
LMSO laughing my socks off
LOL laughing out loud
LTNS long time no see
MTF more to follow
MYOB mind your own business
NFC no fucking clue
NFI no fucking idea
NIH not invented here
NRN no reply necessary
OIC oh, I see
OTOH on the other hand
OTTOMH off the top of my head
PITA pain in the ass
PPL pretty please
RL real life
ROTFL rolling on the floor laughing
RTFB read the fine book
RTFM read the fine manual
RTFMP read the fine man page
RTFS read the fine source
SEP someone else's problem
SFA sweet fuck all
SHID slaps head in disgust
SMLSFB So many losers, so few bullets
SMOP simple matter of programming
SNAFU situation normal, all fucked up
SNERT Snot-Nosed egotistical rude teenager
SO significant other
SOL shit out [of] luck
TIA thanks in advance
TLA three letter acronym
TMI too much information
TTFN ta ta for now
TYVM thank you very much
UTSL use the source, Luke
VEG very evil grin
WTF {what,where,who,why} the fuck
WTH {what,where,who,why} the hell
YKWIM you know what I mean
YMMV your mileage may vary

49
wtf/wtf.6.in Normal file
View File

@@ -0,0 +1,49 @@
.\" $NetBSD: wtf.6,v 1.3 1999/07/25 20:29:04 briggs Exp $
.\"
.\" Public Domain
.\"
.Dd July 21, 1999
.Dt WTF 6
.Os
.Sh NAME
.Nm wtf
.Nd translates acronyms for you
.Sh SYNOPSIS
.Nm
.Op Ar is
.Ar acronym Ar ...
.Sh DESCRIPTION
The
.Nm
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
command.
.Pp
If
.Dq is
is specified on the command line, it will be ignored, allowing the
fairly natural
.Dq wtf is WTF
usage.
.Sh ENVIRONMENT
.Bl -tag -width ACRONYMDB
.It Ev ACRONYMDB
The default acronym database may be overridden by setting the
environment variable
.Ev ACRONYMDB
to the name of a file in the proper format (acronym[tab]meaning).
.El
.Sh FILES
.Bl -tag -width @wtf_acronymfile@ -compact
.It Pa @wtf_acronymfile@
default acronym database.
.El
.Sh SEE ALSO
.Xr whatis 1
.Sh HISTORY
.Nm
first appeared in
.Nx 1.5 .

36
wtf/wtf.in Executable file
View File

@@ -0,0 +1,36 @@
#!/bin/sh
#
# $NetBSD: wtf,v 1.5 1999/08/13 03:02:06 sommerfeld Exp $
#
# Public domain
#
acronyms=${ACRONYMDB:-@wtf_acronymfile@}
if [ X"$1" = X"is" ] ; then
shift
fi
if [ $# -lt 1 ] ; then
echo "Usage: $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`
if [ "$ans" != "" ] ; then
echo "$target: $ans"
else
ans=`whatis $1 2> /dev/null | egrep "^$1[, ]" 2> /dev/null`
if [ $? -eq 0 ] ; then
echo "$1: $ans"
else
echo "Gee... I don't know what $1 means..." 1>&2
rv=1
fi
fi
shift
done
exit $rv