2 # NSC -- Makefile & Config file build script
3 # (c) 1997--2008 Martin Mares <mj@ucw.cz>
7 M4=`which gm4` || M4=`which m4` || ( echo "Unable to find M4!" ; exit 1 )
10 if [ ! -f $DOMAINS ] ; then
11 echo "Domain list file missing."
15 mkdir -p zone bak hash ver
16 $M4 m4/mkconf.m4 $DOMAINS >named.conf
17 $M4 m4/mkmf.m4 $DOMAINS >Makefile
18 $M4 -DM4=$M4 m4/mkgenzone.m4 >bin/genzone