#!/bin/sh # NSC -- Makefile & Config file build script # (c) 1997--2003 Martin Mares set -e M4=`which gm4` || M4=`which m4` || ( echo "Unable to find M4!" ; exit 1 ) DOMAINS=cf/domains if [ ! -f $DOMAINS ] ; then echo "Domain list file missing." exit 1 fi $M4 m4/mkconf.m4 $DOMAINS >named.conf $M4 m4/mkmf.m4 $DOMAINS >Makefile -DM4=$M4