summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-07-29 10:56:10 +0200
committerJim Meyering <meyering@redhat.com>2009-07-29 10:56:10 +0200
commitc91c85647c4dc98ea43b2b368f9be2ecf1855eba (patch)
treebb42608fa050734041a0230d175977b8464cb18c
parent9d87a45b2fb0fcf5239227b71345a507933636c0 (diff)
downloadcoreutils-c91c85647c4dc98ea43b2b368f9be2ecf1855eba.tar.xz
maint: update-copyright: fix just-introduced bug
* build-aux/update-copyright: ... and revert-for-now the change that made this script invoke localtime only once.
-rwxr-xr-xbuild-aux/update-copyright10
1 files changed, 3 insertions, 7 deletions
diff --git a/build-aux/update-copyright b/build-aux/update-copyright
index 9039b7cca..23d8f38ca 100755
--- a/build-aux/update-copyright
+++ b/build-aux/update-copyright
@@ -1,7 +1,7 @@
#!/usr/bin/perl -0777 -pi
# Update an FSF copyright year list to include the current year.
-my $VERSION = '2009-07-29.08:18'; # UTC
+my $VERSION = '2009-07-29.08:43'; # UTC
# Copyright (C) 2009 Free Software Foundation
#
@@ -23,14 +23,10 @@ my $VERSION = '2009-07-29.08:18'; # UTC
use strict;
use warnings;
-my $this_year;
+my ($sec, $min, $hour, $mday, $month, $year) = localtime (time());
+my $this_year = $year + 1900;
my $holder = 'Free Software Foundation';
-BEGIN {
- my ($sec, $min, $hour, $mday, $month, $year) = localtime (time());
- $this_year = $year + 1900;
-}
-
if (/([- ])((?:\d\d)?\d\d)(\s+$holder)/s)
{
my ($sep, $last_c_year, $rest) = ($1, $2, $3);