MakeDoor v1.1  Copyright 1990 William C. Fenner

MakeDoor is a simple li'l program which creates a dorinfo1.def file for
WAFFLE users.  It takes 8 command line parameters from Waffle:
sysop's first name, sysop's last name, baud rate, port, username, terminal
type, access, and time left.  It looks up the username in the password file
and finds their real name, and creates the dorinfo1.def file.  Here's an
example of how we run TurboFlipper:

/waffle/extern/games

tflip /local /screen /shell /command="tflip.bat %b %d %A %t %a %O"

tflip.bat:

makedoor Bill Fenner %1 %2 %3 %4 %5 %6
cd \waffle\doors
dm 1 PCB12 \waffle \waffle\doors\tflip
cd tflip
tflip tflip.cfg
cd \waffle
bnu /i+

DM is DoorMaster, it converts DORINFO1.DEF into a variety of other formats,
in this case we're using it to go to PCBoard version 12.  The BNU /I+ is
necessary to reinitialize the FOSSIL after running the game.  Otherwise,
no I/O will be possible when Waffle reloads.  If you're not running a FOSSIL,
you have to be _very_ careful about what programs you can run; most that do
their own I/O make waffle not want to do any of its own.

If you have any questions/comments, please send them to:

wcf@hogbbs.fidonet.org
wcf@wcfpc.scol.pa.us
Bill Fenner at 129/87

** Revision history:

1.0	-	Initial release

1.1	-	Well, the source to 1.0 disappeared somewhere, so I
		started over with 0.8 .  I do believe I have fixed the
		"password ." problem.  I basically did fgets(usern,file,9)
		but it wants 10 characters if the username is 8 chars long.
		So the next "skip this line" just skipped the end of the
		username, and thus the password got grabbed as the real
		name.

		set MAKEDOOR=(anything) to get some debugging info, if
		you think it's doing something wrong.

For the future:  A bloody binary search for the password file.  It's not so
horribly hard, and it would make a big improvement.  I'm just lazy at the
moment, and this is still a quick hack.