]> 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)
commit0ec444f01f4f7932698896f40e22a70fe1357f1f
treeed6113d6c7f493396159c4a2349c8818451e340a
parente9f0287787b90854080007a74b9ab2aeee6b176a
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