]> mj.ucw.cz Git - nsc-5.git/blob - bin/nsconfig
First step to version 3.0. Changes too extensive to comment them.
[nsc-5.git] / bin / nsconfig
1 #!/bin/bash
2 # NSC -- Makefile & Config file build script
3 # (c) 1997--2003 Martin Mares <mj@ucw.cz>
4
5 set -e
6
7 M4=`which gm4` || M4=`which m4` || ( echo "Unable to find M4!" ; exit 1 )
8 DOMAINS=cf/domains
9
10 if [ ! -f $DOMAINS ] ; then
11         echo "Domain list file missing."
12         exit 1
13         fi
14
15 $M4 m4/mkconf.m4 $DOMAINS >named.conf
16 $M4 m4/mkmf.m4 $DOMAINS >Makefile -DM4=$M4