home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume33
/
mbase
/
part08
< prev
next >
Wrap
Text File
|
1992-11-24
|
9KB
|
266 lines
Newsgroups: comp.sources.misc
From: richid@owlnet.rice.edu (Richard Parvin Jernigan)
Subject: v33i126: mbase - MetalBase 5.0, Portable database engine, Part08/08
Message-ID: <1992Nov23.233106.9779@sparky.imd.sterling.com>
X-Md4-Signature: 573d2d7ad9a676da48548e96cf1e5ceb
Date: Mon, 23 Nov 1992 23:31:06 GMT
Approved: kent@sparky.imd.sterling.com
Submitted-by: richid@owlnet.rice.edu (Richard Parvin Jernigan)
Posting-number: Volume 33, Issue 126
Archive-name: mbase/part08
Environment: AMIGA, MS-DOS, HP-UX, XENIX, UNIX, ULTRIX, SGI, SU, Curses
Supersedes: mbase: Volume 28, Issue 40-44
#! /bin/sh
# This is a shell archive. Remove anything before this line, then feed it
# into a shell via "sh file" or similar. To overwrite existing files,
# type "sh file -c".
# Contents: dox/author.dox dox/curses.dox sample/makefile.dos
# src/mailscr
# Wrapped by kent@sparky on Mon Nov 23 16:33:15 1992
PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin ; export PATH
echo If this archive is complete, you will see the following message:
echo ' "shar: End of archive 8 (of 8)."'
if test -f 'dox/author.dox' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'dox/author.dox'\"
else
echo shar: Extracting \"'dox/author.dox'\" \(1557 characters\)
sed "s/^X//" >'dox/author.dox' <<'END_OF_FILE'
XAuthor MetalBase 5.0
X-------------------------------------------------------------------------------
X
XI'm not around on the Internet as much as I'd like--my address keeps shifting
Xaround. I know one guy had a problem with this (granted, he flew off all
Xkindsa shit my way about it, but...), so I decided to throw in a file about
Xhow to get ahold of me.
X
XMy name is Richard Jernigan... and I _do_ do support for MetalBase. Once you
Xreach me anyway... the aforementioned guy seemed to think I should've read his
Xmind and written him. Reach me, and I'll fix it. With 4.0+, there've been
Xvery few requests for service... and all those that were have turned out to
Xjust be implementation problems (ie, _my_ code worked. Nya nya nya). If
Xyou're just dying to get a hold of me, and everything else fails, write me:
X
X Richid Jernigan
X PO Box 827
X Norris TN 37828
X
XOkay, so you don't wanna do that. Well, you've got a lot of options with
Xregard to getting me on the Internet... if you're looking for me over the
X
Xsummer of '92, I'll be at.....................t-richj@microsoft.com
XNice, eh? Otherwise, try the default.........virtual!richid@owlnet.rice.edu
XAnd, if that's gone, odds are this is too.....richid@owlnet.rice.edu
XHummm... then you're in trouble. How about...uunet!mwcbbs!virtual!richid
X
XOne of those should work. Look for me on rec.games.programmer or sci.
Xvirtual-worlds... when I've got an active net account, I usually post there.
X
XGood luck. :)
X
END_OF_FILE
if test 1557 -ne `wc -c <'dox/author.dox'`; then
echo shar: \"'dox/author.dox'\" unpacked with wrong size!
fi
# end of 'dox/author.dox'
fi
if test -f 'dox/curses.dox' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'dox/curses.dox'\"
else
echo shar: Extracting \"'dox/curses.dox'\" \(1650 characters\)
sed "s/^X//" >'dox/curses.dox' <<'END_OF_FILE'
XCurses MetalBase 5.0
X-------------------------------------------------------------------------------
X
X Curses
X
XVR and SAMPLE require a curses package to run; MS-DOS users can get a public
Xdomain curses package for VR and SAMPLE via anonymous ftp from
X
X archive.umich.edu as /msdos/screen/pccurses.arc
X wuarchive.wustl.edu as /systems/msdos/umich.edu/screen/pccurses.arc
X
Xif you cannot reach either domain, contact me and I'll forward my copy to you.
XThese people have no idea I'm using their address, so do be kind to the sites
Xand don't call until it's late local time. The package is rather nice; a bit
Xof a bitch to set up initially, but it's a good implementation of curses. Only
Xthing I've had a problem with is its standout()/standend() commands; they
Xdon't work right for me. Better luck to you.
X
X [ If you get the package from wolfen, you may need to change <alloc.h> ]
X [ to <malloc.h> in curses.h... for some god-forsaken reason, they use ]
X [ the old name for the thing. The package comes with sources as well as ]
X [ Xcurses.lib, for every model, but DON'T USE THE PRE-BUILD LIBRARIES! ]
X [ Recompile 'em first or you'll get a problem with "@F_LDIV is undefined". ]
X [ Nasty. I don't know -what- compiler they were made with... if you can ]
X [ find out, lemme know. ]
X
XIf you're using MS-DOS to access a Unix-style server, ANSI.SYS may not cut
Xit for you. Try replacing it with VT52.SYS and using term type vt52 on your
Xunix platform; that may help.
X
END_OF_FILE
if test 1650 -ne `wc -c <'dox/curses.dox'`; then
echo shar: \"'dox/curses.dox'\" unpacked with wrong size!
fi
# end of 'dox/curses.dox'
fi
if test -f 'sample/makefile.dos' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'sample/makefile.dos'\"
else
echo shar: Extracting \"'sample/makefile.dos'\" \(892 characters\)
sed "s/^X//" >'sample/makefile.dos' <<'END_OF_FILE'
X#
X# METALBASE 5.0
X#
X# Released October 1st, 1992 by Huan-Ti [ richid@owlnet.rice.edu ]
X# [ t-richj@microsoft.com ]
X#
X# Makefile for demonstration program -- Microsoft C6 expected
X#
X#
X# If mbase.h and stdinc.h aren't in \include, put them there or add
X# -Idirectory to CFLAGS=.
X
XCFLAGS = -nologo -c -W3 -AL -DNEED_USHORT -DNEED_ULONG
X
XCC = CL $(CFLAGS)
X
X###############################################################################
X
Xall : sample.exe bench.exe
X
X
Xbench.exe : bench.obj
X link/nologo bench.obj, bench.exe,, mbase.lib lcurses;
X
Xbench.obj : bench.c bench.h
X $(CC) $*.c
X
Xbench.h : bench.s
X .\build -qh bench.s
X
X
Xsample.exe : sample.obj
X link/nologo sample.obj, sample.exe,, mbase.lib lcurses;
X
Xsample.obj : sample.c sample.h sample_f.h
X $(CC) $*.c
X
Xsample.h : sample.s
X .\build -qh sample.s
X
Xsample_f.h : sample.frm
X .\form sample
X
END_OF_FILE
if test 892 -ne `wc -c <'sample/makefile.dos'`; then
echo shar: \"'sample/makefile.dos'\" unpacked with wrong size!
fi
# end of 'sample/makefile.dos'
fi
if test -f 'src/mailscr' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'src/mailscr'\"
else
echo shar: Extracting \"'src/mailscr'\" \(1719 characters\)
sed "s/^X//" >'src/mailscr' <<'END_OF_FILE'
X#!/bin/sh
X#
X
Xif [ -r /coherent ]
Xthen
X if [ ":`cat /etc/domain 2> /dev/null`" = ":virtual" ]
X then
X richid="richid"
X else
X richid="mwcbbs!virtual!richid"
X fi
Xelse
X richid="richid@owlnet.rice.edu"
Xfi
X
Xecho
Xecho "MetalBase 5.0 is now installed. Move to the directory ../sample and"
Xecho "continue with the ../ReadMe file for a test run."
Xecho
Xecho "In order to see how much time I should spend developing this code, it"
Xecho "would be helpful for me to know how many people got it. There's also"
Xecho "been talk of a mailing list, though I'm not sure I'm gonna start one."
Xecho "May I send a message to $richid, telling him you've installed"
Xecho -n "this code? [Yn] "
Xans=x
Xwhile [ ":$ans" != ":yes" -a ":$ans" != ":no" ]
Xdo
X read ans
X if [ ":$ans" = ":Y" -o ":$ans" = ":y" -o ":$ans" = ":" ]; then
X ans="yes"
X fi
X if [ ":$ans" = ":N" -o ":$ans" = ":n" ]; then
X ans="no"
X fi
Xdone
X
Xif [ ":$ans" = ":no" ]
Xthen
X echo "Thanks anyway. Enjoy the package."
Xelse
X echo
X echo "Thank you. Just a moment..."
X
X if [ -r /usr/ucb/mail ]
X then
X /usr/ucb/mail -s "MetalBase 5.0 Installed" $richid << END
XMetalBase Version 5.0
X---------------------
XPackage installed on `date 2> /dev/null`:
X
X User - $USER / $LOGNAME / `logname 2> /dev/null`
X Architecture - `arch 2> /dev/null`
X Uname/UUname - `uname -a 2> /dev/null`
X
XEND
X else
X opt=""
X
X mail $richid << END
XMetalBase Version 5.0
X---------------------
XPackage installed on `date 2> /dev/null`:
X
X User - $USER / $LOGNAME / `logname 2> /dev/null`
X Architecture - `arch 2> /dev/null`
X Uname/UUname - `uname -a 2> /dev/null`
X
XEND
X fi
X
X echo
X echo "Mail sent. Enjoy the package."
Xfi
X
END_OF_FILE
if test 1719 -ne `wc -c <'src/mailscr'`; then
echo shar: \"'src/mailscr'\" unpacked with wrong size!
fi
chmod +x 'src/mailscr'
# end of 'src/mailscr'
fi
echo shar: End of archive 8 \(of 8\).
cp /dev/null ark8isdone
MISSING=""
for I in 1 2 3 4 5 6 7 8 ; do
if test ! -f ark${I}isdone ; then
MISSING="${MISSING} ${I}"
fi
done
if test "${MISSING}" = "" ; then
echo You have unpacked all 8 archives.
rm -f ark[1-9]isdone
else
echo You still must unpack the following archives:
echo " " ${MISSING}
fi
exit 0
exit 0 # Just in case...