#!/bin/sh # NSC -- Makefile & Config file build script # (c) 1997--2019 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 mkdir -p zone bak hash ver keys khash dss $M4 m4/mkconf.m4 $DOMAINS >named.conf $M4 m4/mkmf.m4 $DOMAINS >Makefile $M4 -DM4=$M4 m4/mkshell-env.m4 >bin/shell-env