]> mj.ucw.cz Git - nsc-5.git/blob - bin/nsconfig
DNSSEC: Key management scripts
[nsc-5.git] / bin / nsconfig
1 #!/bin/sh
2 # NSC -- Makefile & Config file build script
3 # (c) 1997--2019 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 mkdir -p zone bak hash ver keys dss
16 $M4 m4/mkconf.m4 $DOMAINS >named.conf
17 $M4 m4/mkmf.m4 $DOMAINS >Makefile
18 $M4 -DM4=$M4 m4/mkshell-env.m4 >bin/shell-env