From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 57C3720248 for ; Tue, 5 Mar 2019 23:07:31 +0000 (UTC) Received: from localhost ([127.0.0.1]:50602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1J9l-0000P0-LT for normalperson@yhbt.net; Tue, 05 Mar 2019 18:07:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1J96-0008PZ-Hn for bug-gnulib@gnu.org; Tue, 05 Mar 2019 18:06:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1J95-0004ud-4Z for bug-gnulib@gnu.org; Tue, 05 Mar 2019 18:06:48 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43846) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h1J94-0004cL-S7 for bug-gnulib@gnu.org; Tue, 05 Mar 2019 18:06:47 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9EE8616145F for ; Tue, 5 Mar 2019 15:06:19 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id zrU-1CNZy-jk; Tue, 5 Mar 2019 15:06:18 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 82B591613E2; Tue, 5 Mar 2019 15:06:18 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id fGFQUYlDM5Gx; Tue, 5 Mar 2019 15:06:18 -0800 (PST) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6116C161387; Tue, 5 Mar 2019 15:06:18 -0800 (PST) From: Paul Eggert To: bug-gnulib@gnu.org Subject: [PATCH] git-version-gen: fix --version copyright year Date: Tue, 5 Mar 2019 15:06:13 -0800 Message-Id: <20190305230613.5589-1-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Eggert Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" * build-aux/git-version-gen, build-aux/move-if-change (version): --version output copyright year is now taken from script year, so that it no longer needs to be updated by hand. --- ChangeLog | 7 +++++++ build-aux/git-version-gen | 3 ++- build-aux/move-if-change | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 96083f3ea..e5ba15719 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-03-05 Paul Eggert + + git-version-gen: fix --version copyright year + * build-aux/git-version-gen, build-aux/move-if-change (version): + --version output copyright year is now taken from script year, + so that it no longer needs to be updated by hand. + 2019-03-04 Bruno Haible =20 relocatable-prog: Use wrapper-free installation on Mac OS X, take 2. diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen index 3b7009733..45b5656e6 100755 --- a/build-aux/git-version-gen +++ b/build-aux/git-version-gen @@ -72,9 +72,10 @@ scriptversion=3D2018-03-07.03; # UTC =20 me=3D$0 =20 +year=3D`expr "$scriptversion" : '\([^-]*\)'` version=3D"git-version-gen $scriptversion =20 -Copyright 2011 Free Software Foundation, Inc. +Copyright $year Free Software Foundation, Inc. There is NO warranty. You may redistribute this software under the terms of the GNU General Public License. For more information about these matters, see the files named COPYING." diff --git a/build-aux/move-if-change b/build-aux/move-if-change index 9538fdbac..9073f1a50 100755 --- a/build-aux/move-if-change +++ b/build-aux/move-if-change @@ -36,9 +36,10 @@ The variable CMPPROG can be used to specify an alterna= tive to 'cmp'. =20 Report bugs to ." =20 +year=3D`expr "$VERSION" : '\([^-]*\)'` version=3D`expr "$VERSION" : '\([^ ]*\)'` version=3D"move-if-change (gnulib) $version -Copyright (C) 2011 Free Software Foundation, Inc. +Copyright $year Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law." --=20 2.20.1