diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2002-11-13 10:14:04 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2002-11-13 10:14:04 +0000 |
commit | 429e45ec442b631234acbce7232bf69bcc5786c8 (patch) | |
tree | 1aaf0fa59f613e55ecf8917f9b66a1b50072eefb | |
parent | 7d95bf11bbf5a12f6b74c116b3536b1192018101 (diff) | |
download | pkgsrc-429e45ec442b631234acbce7232bf69bcc5786c8.tar.gz |
only update the README-IPv6.html file if it has changed
-rwxr-xr-x | mk/bulk/mkreadme | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/bulk/mkreadme b/mk/bulk/mkreadme index 3e648f450fd..dc13e0c94f5 100755 --- a/mk/bulk/mkreadme +++ b/mk/bulk/mkreadme @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: mkreadme,v 1.4 2002/11/13 00:59:35 dmcmahill Exp $ +# $NetBSD: mkreadme,v 1.5 2002/11/13 10:14:04 dmcmahill Exp $ # # Script for README.html generation # @@ -438,11 +438,16 @@ fgrep -f $ipv6 README-all.html | sort -t/ +1 > $ipv6_entries sed \ -e "/%%TRS%%/r${ipv6_entries}" \ -e '/%%TRS%%/d' \ - templates/README.ipv6 > README-IPv6.html + templates/README.ipv6 > ${TMPDIR}/README-IPv6.html if [ $? != 0 ]; then echo "Error: README-IPv6.html generation failed (on sed script)" clean_and_exit fi +if [ ! -f README-IPv6.html ] || ! cmp -s ${TMPDIR}/README-IPv6.html README-IPv6.html ; then + mv -f ${TMPDIR}/README-IPv6.html README-IPv6.html +else + echo "README-IPv6.html is unchanged (no changes were needed)" +fi echo " " echo "README.html generation finished: `date`" |