mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
* New upstream release.
- Fix backgammon scoring bug related to peices on the bar and gammons.
Closes: #185101
- Fix backgammon tutorial text. Closes: #212478
- Advertising clause is gone from most, but not all licenses.
- Apparently better fix for boggle man page.
- Incorporates nearly all changes in Debian diff.
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@9782 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
34
wtf/wtf.in
34
wtf/wtf.in
@@ -1,18 +1,48 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: wtf,v 1.8 2003/02/06 15:17:01 salo Exp $
|
||||
# $NetBSD: wtf,v 1.11 2003/04/25 19:08:31 jmmv Exp $
|
||||
#
|
||||
# Public domain
|
||||
#
|
||||
|
||||
usage() {
|
||||
echo "usage: `basename $0` [-f dbfile] [-t type] [is] <acronym>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
acronyms=${ACRONYMDB:-@wtf_acronymfile@}
|
||||
|
||||
args=`getopt f:t: $*`
|
||||
if [ $? -ne 0 ]; then
|
||||
usage
|
||||
fi
|
||||
set -- $args
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
-f)
|
||||
acronyms=$2; shift
|
||||
;;
|
||||
-t)
|
||||
acronyms=@wtf_acronymfile@.$2; shift
|
||||
;;
|
||||
--)
|
||||
shift; break
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if [ X"$1" = X"is" ] ; then
|
||||
shift
|
||||
fi
|
||||
|
||||
if [ $# -lt 1 ] ; then
|
||||
echo "Usage: `basename $0` [is] <acronym>"
|
||||
usage
|
||||
fi
|
||||
|
||||
if [ ! -f $acronyms ]; then
|
||||
echo "`basename $0`: cannot open acronyms database file \`$acronyms'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rv=0
|
||||
|
||||
Reference in New Issue
Block a user