From 6efc562bccfcf4484e8c18ee98296e0c1fb60eac Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 30 Apr 1999 02:23:18 +0000 Subject: Correct logfile updating. svn path=/trunk/; revision=2461 --- makerelease | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'makerelease') diff --git a/makerelease b/makerelease index b3644b6a..303678d3 100755 --- a/makerelease +++ b/makerelease @@ -12,7 +12,7 @@ sub rfc822date @months = ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Nov", "Dec"); my($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime(time()); - "$wdays[$wday] $months[$mon] " . substr("0$mday", -2) . " " . substr("0$hour", -2) . ":" . substr("0$min", -2) . ":" . substr("0$sec", -2) . " $timezone " . (1900+$year); + "$wdays[$wday], $months[$mon] " . substr("0$mday", -2) . " " . substr("0$hour", -2) . ":" . substr("0$min", -2) . ":" . substr("0$sec", -2) . " $timezone " . (1900+$year); } @@ -61,8 +61,9 @@ if ($version eq $logvers) { } else { $date = &rfc822date(); print "Updating the Debian logfile ($logvers -> $version)...\n"; - open(DEBLOG, ">>debian/changelog"); - print DEBLOG <mkr$$.tmp") || die("Error opening temp file\n"); + print TMP < ${date} EOF + while () { + print TMP $_; + } + close(TMP); close(DEBLOG); + system("mv mkr$$.tmp debian/changelog"); } print "Building the distribution...\n"; -- cgit v1.2.3