head	1.3;
access;
symbols
	RELENG_5_2_1_RELEASE:1.1
	RELENG_5_2_0_RELEASE:1.1
	RELENG_5_2:1.1.0.2
	RELENG_5_2_BP:1.1;
locks; strict;
comment	@# @;


1.3
date	2004.01.23.16.22.49;	author harti;	state dead;
branches;
next	1.2;

1.2
date	2004.01.23.11.07.55;	author harti;	state Exp;
branches;
next	1.1;

1.1
date	2003.11.10.09.22.40;	author harti;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Create the OID and tree files while building the modules and the daemon
instead of creating them by hand and storing them in the CVS tree. Add
gensnmptree to the bootstrap tools (it is used to generated these files).
This simplifies the update procedure.

Submitted by:	ru
@
text
@#!/bin/sh
# $FreeBSD: src/usr.sbin/bsnmpd/bsnmpd/genfiles,v 1.2 2004/01/23 11:07:55 harti Exp $

XSYM="snmpMIB begemotSnmpdModuleTable begemotSnmpd begemotTrapSinkTable \
	sysUpTime snmpTrapOID coldStart authenticationFailure \
	begemotSnmpdTransUdp begemotSnmpdTransLsock begemotSnmpdLocalPortTable"
SRC=../../../contrib/bsnmp/snmpd

gensnmptree -l <${SRC}/tree.def
gensnmptree <${SRC}/tree.def -e ${XSYM} >oid.h

for i in tree.h tree.c oid.h ; do
	ex $i <<'EOF'
0a
/* $XFreeBSD$ */
/* generated file, don't edit - use ./genfiles */
.
1s/X//
wq
EOF
done
@


1.2
log
@Catch up with the import of version 1.5a of bsnmp.

Fix the script to insert $FreeBSD$ into the generated file instead
of the script's FreeBSD id.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.1
log
@Add the build infrastructure for the SNMP daemon that is the base
for the NgATM ILMI daemon and for the tree parsing helper program.
@
text
@d5 2
a6 1
	sysUpTime snmpTrapOID coldStart authenticationFailure"
d15 1
a15 1
/* $FreeBSD$ */
d18 1
@

