From: Chris Hanson Date: Fri, 20 Dec 2002 17:54:24 +0000 (+0000) Subject: Don't keep zero-length logs. X-Git-Tag: 20090517-FFI~2101 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=699ee3c3689090ddd8a4ed2c28b45375189c4555;p=mit-scheme.git Don't keep zero-length logs. --- diff --git a/etc/update-rcs-log b/etc/update-rcs-log index 5d94e93ac..c6e485f22 100755 --- a/etc/update-rcs-log +++ b/etc/update-rcs-log @@ -20,8 +20,11 @@ generate_log_gopts () cvs2cl --global-opts "${2}" --revisions --usermap "${UM}" --stdout > "${N}" if cmp "${N}" "${O}"; then rm -f "${N}" - else + elif [ -s "${N}" ]; then mv -f "${N}" "${O}" + else + echo "Discarding zero-length log." + rm -f "${N}" fi }