Don't keep zero-length logs.
authorChris Hanson <org/chris-hanson/cph>
Fri, 20 Dec 2002 17:54:24 +0000 (17:54 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 20 Dec 2002 17:54:24 +0000 (17:54 +0000)
etc/update-rcs-log

index 5d94e93ac568a87c2728c8bda8bb6ce24ec7583b..c6e485f229303f52cf494d715affd0a4f5bfc87f 100755 (executable)
@@ -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
 }