Home | History | Annotate | Download | only in scripts

Lines Matching refs:dir

14 dir=/tmp/zone-edit.$$
15 mkdir ${dir} || exit 1
16 trap "/bin/rm -rf ${dir}" 0
60 | awk '$4 == "RRSIG" || $4 == "NSEC" || $4 == "NSEC3" || $4 == "NSEC3PARAM" { next; } { print; }' >${dir}/old
62 if test -s ${dir}/old; then
63 ${checkzone} -q -D "$zone" ${dir}/old >${dir}/ooo
66 if test -s ${dir}/ooo; then
67 cp ${dir}/ooo ${dir}/new
69 if ${VISUAL:-${EDITOR:-/bin/ed}} ${dir}/new; then
70 if ${checkzone} -q -D "$zone" ${dir}/new >${dir}/nnn; then
71 sort ${dir}/ooo >${dir}/s1
72 sort ${dir}/nnn >${dir}/s2
73 comm -23 ${dir}/s1 ${dir}/s2 \
74 | sed 's/^/update delete /' >${dir}/ccc
75 comm -13 ${dir}/s1 ${dir}/s2 \
76 | sed 's/^/update add /' >>${dir}/ccc
77 if test -s ${dir}/ccc; then
78 cat ${dir}/ccc | more
86 cat ${dir}/ccc
95 cat ${dir}/ccc | more
98 cp ${dir}/ooo ${dir}/new
115 cp ${dir}/ooo ${dir}/new
133 cp ${dir}/ooo ${dir}/new