From 80cc9df354572f72e326306adc1853aa3b499e4d Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Mon, 19 Sep 2005 06:14:27 +0000 Subject: [PATCH] I just realised what's been happening to the changelog: I recently got a new version of 'head' that refuses to accept -1 instead of -n 1, but doesn't actually return failure. So mkchangelog was feeding nothing to the cvs date argument, and instead merrily snarfing down the entire changelog every time. I've put in a simple $date != "" check. Thanks, textutils! Thanks for ushering in the future! I'd like to shake your hand. Hard. --- mkchangelog.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/mkchangelog.sh b/mkchangelog.sh index f13bec1d..ce909dcf 100755 --- a/mkchangelog.sh +++ b/mkchangelog.sh @@ -2,4 +2,5 @@ TZ=GMT; export TZ date="`head -1 ChangeLog | awk '{print $1, $2}'`" +test -n "$date" || exit 1 cvs -z9 log -d ">$date" | perl ./cvslog2changelog.pl -- 2.40.0