]> mj.ucw.cz Git - nsc-5.git/commit
When zone contents do not change, version number is not incremented
authorMartin Mares <mj@ucw.cz>
Sun, 16 Oct 2011 19:24:17 +0000 (21:24 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 16 Oct 2011 19:24:17 +0000 (21:24 +0200)
commit94b06f4a7da72fa07f4aa0536f80c6e65a7813f6
tree21466bece229cfacd2a02f64f75b31c0e2189b80
parentb09544a247701516325cd805bd3cc8d28a058fec
When zone contents do not change, version number is not incremented

Replaced direct calls to M4 from the Makefile by calling an auxiliary
script (generated by m4/mkgenzone.m4), which calculates a MD5 hash of
a (suitably normalized) zone file and compares it with a cached hash
of the current version.

The downside is that we run M4 twice on each changed zone. If it ever
causes any harm, we can generate the zone once and move updating of the
version number to the shell script, too.

Based on a patch by Vaclav Ovsik.
NEWS
TODO
bin/nsconfig
m4/dnslib.m4
m4/mkgenzone.m4 [new file with mode: 0644]
m4/mkmf.m4
m4/nsc.m4