From 83a5d1d3e0aa9219adf83c971b2bde034bd19df0 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 16 Dec 2002 05:44:26 +0000 Subject: [PATCH] Make sure that all changelogs are generated. --- etc/update-rcs-log | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/etc/update-rcs-log b/etc/update-rcs-log index 9eaafe381..386551ce1 100755 --- a/etc/update-rcs-log +++ b/etc/update-rcs-log @@ -7,18 +7,36 @@ umask 002 exec > /scheme/etc/update-rcs-log.out 2>&1 -GOPTS="-d :pserver:anoncvs@subversions.gnu.org:/cvsroot/mit-scheme" -MAP="/scheme/v7/src/etc/usermap" +GOPTS_SCHEME="-d :pserver:anoncvs@subversions.gnu.org:/cvsroot/mit-scheme" +UM="/scheme/v7/src/etc/usermap" +O="ChangeLog" +N="${O}.new" + +generate_log_gopts () +{ + cd "${1}" + cvs2cl --global-opts "${2}" --revisions --usermap "${UM}" --stdout > "${N}" + if cmp "${N}" "${O}"; then + rm -f "${N}" + else + mv -f "${N}" "${O}" + fi +} + +generate_log_gopts /scheme/v7/doc "${GOPTS_SCHEME}" +generate_log_gopts /scheme/v7/src "${GOPTS_SCHEME}" +generate_log_gopts /scheme/etc "${GOPTS_SCHEME}" generate_log () { cd "${1}" - /usr/local/bin/cvs2cl -g "${GOPTS}" -r -U "${MAP}" - /bin/rm -f ChangeLog.bak + cvs2cl --revisions --usermap "${UM}" --stdout > "${N}" + if cmp "${N}" "${O}"; then + rm -f "${N}" + else + mv -f "${N}" "${O}" + fi } -generate_log /scheme/v7/doc -generate_log /scheme/v7/src -#generate_log /scheme/etc -#generate_log /gunk/hlsim/doc -#generate_log /gunk/hlsim/src +generate_log /gunk/hlsim/doc +generate_log /gunk/hlsim/src -- 2.25.1