- Domain Name Server Configuration Utilities -- NSC 3.0.1
+ Domain Name Server Configuration Utilities -- NSC 3.0.2
- (c) 1997--2006 Martin Mares <mj@ucw.cz>
+ (c) 1997--2008 Martin Mares <mj@ucw.cz>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/sh
# NSC -- Makefile & Config file build script
-# (c) 1997--2003 Martin Mares <mj@ucw.cz>
+# (c) 1997--2008 Martin Mares <mj@ucw.cz>
set -e
fi
$M4 m4/mkconf.m4 $DOMAINS >named.conf
-$M4 m4/mkmf.m4 $DOMAINS >Makefile -DM4=$M4
+$M4 -DM4=$M4 m4/mkmf.m4 $DOMAINS >Makefile
dnl ###
dnl ### NSC -- Makefile Builder
-dnl ### (c) 1997--2003 Martin Mares <mj@ucw.cz>
+dnl ### (c) 1997--2008 Martin Mares <mj@ucw.cz>
dnl ###
include(m4/dnslib.m4)
define(`nsc_prepend_cf_one', ` 'CFDIR/`nsc_file_name($1)')
define(`nsc_prepend_cf_multi', `nsc_iterate(`nsc_prepend_cf_one', $@)')
define(`PRIMARY', `divert(0)ZONEDIR/nsc_file_name($1):nsc_prepend_cf_multi($@) $(DDEPS)
- `$'(NSC)nsc_prepend_cf_multi($@) >ZONEDIR/nsc_file_name($1) -DVERS=VERSDIR/nsc_file_name($1)
+ `$'(`M4') -DVERS=VERSDIR/nsc_file_name($1) `$'(NSC)nsc_prepend_cf_multi($@) >ZONEDIR/nsc_file_name($1)
divert(-1)
define(`PRIMARIES', PRIMARIES ZONEDIR/nsc_file_name($1))
touch VERSDIR/.version
clean:
- find BAKDIR ZONEDIR -type f -maxdepth 1 | xargs rm -f
+ find BAKDIR ZONEDIR -maxdepth 1 -type f | xargs rm -f
clobber: clean
rm -f Makefile named.conf
distclean: clobber
- find VERSDIR -type f -maxdepth 1 | xargs rm -f
+ find VERSDIR -maxdepth 1 -type f | xargs rm -f
')
divert(0)dnl
`#'
`M4'=M4
-NSC=$(`M4') m4/nsc.m4
-DDEPS=m4/nsc.m4 m4/dnslib.m4 cf/config
+NSC=m4/nsc.m4
+DDEPS=`$'(NSC) m4/dnslib.m4 cf/config
all: VERSDIR/.version
m4wrap(`nsc_cleanup')
dnl ###
dnl ### NSC -- Zone File Generator
-dnl ### (c) 1997--2003 Martin Mares <mj@ucw.cz>
+dnl ### (c) 1997--2008 Martin Mares <mj@ucw.cz>
dnl ###
-dnl ### Usage: m4 nsc.m4 domain-source-files >zone-file -DVERS=path-to-version-file
+dnl ### Usage: m4 -DVERS=path-to-version-file nsc.m4 domain-source-files >zone-file
dnl ###
include(m4/dnslib.m4)