head 1.15;
access;
symbols;
locks; strict;
comment @ * @;
1.15
date 94.03.12.22.31.18; author paul; state Exp;
branches;
next 1.14;
1.14
date 94.03.12.00.59.25; author paul; state Exp;
branches;
next 1.13;
1.13
date 94.03.11.21.26.14; author paul; state Exp;
branches;
next 1.12;
1.12
date 94.02.28.22.20.14; author paul; state Exp;
branches;
next 1.11;
1.11
date 94.01.07.18.02.19; author paul; state Exp;
branches;
next 1.10;
1.10
date 93.04.16.02.11.11; author paul; state Exp;
branches;
next 1.9;
1.9
date 93.04.05.20.40.30; author paul; state Exp;
branches;
next 1.8;
1.8
date 93.04.02.16.14.43; author paul; state Exp;
branches;
next 1.7;
1.7
date 93.04.01.16.27.58; author paul; state Exp;
branches;
next 1.6;
1.6
date 92.12.12.19.12.28; author paul; state Exp;
branches;
next 1.5;
1.5
date 92.07.29.04.15.49; author paul; state Exp;
branches;
next 1.4;
1.4
date 92.07.28.16.05.57; author paul; state Exp;
branches;
next 1.3;
1.3
date 92.07.28.05.04.09; author paul; state Exp;
branches;
next 1.2;
1.2
date 92.07.27.22.20.02; author paul; state Exp;
branches;
next 1.1;
1.1
date 92.07.27.21.37.00; author paul; state Exp;
branches;
next ;
desc
@@
1.15
log
@Better error message.
@
text
@/*
* Copyright (c) 1985 Corporation for Research and Educational Networking
* Copyright (c) 1988 University of Illinois Board of Trustees, Steven
* Dorner, and Paul Pomes
* 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. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the Corporation for
* Research and Educational Networking (CREN), the University of
* Illinois at Urbana, and their contributors.
* 4. Neither the name of CREN, the University nor the names of their
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE TRUSTEES AND CONTRIBUTORS ``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 TRUSTEES OR CONTRIBUTORS 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.
*/
1.13
log
@Replace DontLog with Option setting macro.
@
text
@a0 2
#include "protos.h"
d2 33
a34 5
* This software is Copyright (C) 1988 by Steven Dorner and the
* University of Illinois Board of Trustees. No warranties of any
* kind are expressed or implied. No support will be provided.
* This software may not be redistributed for commercial purposes.
* You may direct questions to nameserv@@uiuc.edu
d36 6
@
1.12
log
@Eliminated bug where non-empty fields that happened to end with ':'
were omitted.
@
text
@a14 1
extern int DontLog; /* qi/qi.c */
d34 1
a34 1
DontLog = 1;
@
1.10
log
@Quiet now a global in qi/qi.c .
@
text
@d46 1
a46 1
else if (equal = index(*argv, '='))
@
1.9
log
@Minor fixes.
@
text
@d16 1
a30 1
int Quiet = 0;
@
1.8
log
@Announce which database is being smashed, uhhhh built, and pause 5 seconds.
@
text
@d15 2
a16 1
int IndicateAlways = 0; /* somebody wants this */
a19 1
int DontLog = 1;
d35 2
a166 8
}
/*
* keep ld happy
*/
cleanup()
{
exit(100);
@
1.7
log
@Now can modify Strings[] like qi, e.g. prog -DATABASE=/tmp/foo .
@
text
@d66 3
@
1.6
log
@Fixed usage of Database.
@
text
@d12 1
a12 1
* mkdir -- make a dir file for the nameserver
d20 1
d30 1
d32 3
d37 3
a39 1
argc--, argv++;
d41 23
a63 4
if (!argc)
{
fprintf(stderr, "Usage: mkdir dbname\n");
exit(1);
d65 1
a67 1
(void) strcpy(Database, *argv);
d70 1
a70 1
fprintf(stderr, "Couldn't init %s.\n", *argv);
d92 1
a92 1
if (++count % 500 == 0)
d95 2
a96 1
putc('\n', stderr);
@
1.2
log
@Re-formatted for clarity
@
text
@d13 1
a13 1
#include <stdio.h>
d17 3
d32 1
a32 1
DIR dirp;
@
1.1
log
@Initial revision
@
text
@d1 11
a11 12
/*********************************************************************
* This software is Copyright (C) 1988 by Steven Dorner and the
* University of Illinois Board of Trustees. No warranties of any
* kind are expressed or implied. No support will be provided.
* This software may not be redistributed for commercial purposes.
* You may direct questions to dorner@@garcon.cso.uiuc.edu
**********************************************************************/
/***********************************************************************
* mkdir -- make a dir file for the nameserver
***********************************************************************/
/* $Header: /nameserv/Src/Util/RCS/maked.c,v 1.10 90/12/18 08:42:04 dorner Exp Locker: dorner $ */
d17 2
a18 2
char *strtok();
int IndicateAlways=0; /* somebody wants this */
d20 2
a21 2
#define DIR_MAX 80
int DontLog=1;
d24 2
a25 2
int argc;
char **argv;
d28 46
a73 47
char buffer[BUF_SIZE];
Dir theDir;
int count;
char *index();