public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: scripts/
Date: Sun,  7 Jun 2020 13:15:12 +0000 (UTC)	[thread overview]
Message-ID: <1591535693.b95aa174ca6822b3c63d327938b32a3d637fae5a.ulm@gentoo> (raw)

commit:     b95aa174ca6822b3c63d327938b32a3d637fae5a
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  7 13:13:00 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jun  7 13:14:53 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b95aa174

scripts/bootstrap.sh: Fix copyright years in output.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 scripts/bootstrap.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index c06e25dba13..46026a79e1c 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -58,8 +58,7 @@ v_echo() {
 cvsver="$Id$" # TODO: FIXME for Git era
 cvsver=${cvsver##*,v }
 cvsver=${cvsver%%Exp*}
-cvsyear=${cvsver#* }
-cvsyear=${cvsyear%%/*}
+file_copyright=$(sed -n '/Copyright/!b;s/^# *//;p;q' $0)
 
 usage() {
 	echo -e "Usage: ${HILITE}${0##*/}${NORMAL} ${GOOD}[options]${NORMAL}"
@@ -138,7 +137,7 @@ if [[ ! -d ${MYPROFILEDIR} ]] ; then
 fi
 
 echo -e "\n${GOOD}Gentoo Linux; ${BRACKET}http://www.gentoo.org/${NORMAL}"
-echo -e "Copyright 1999-${cvsyear} Gentoo Foundation; Distributed under the GPLv2"
+echo -e "${file_copyright}; Distributed under the GPLv2"
 if [[ " ${STRAP_EMERGE_OPTS} " == *" -f "* ]] ; then
 	echo "Fetching all bootstrap-related archives ..."
 elif [[ -n ${STRAP_RUN} ]] ; then


             reply	other threads:[~2020-06-07 13:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-07 13:15 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-12 11:08 [gentoo-commits] repo/gentoo:master commit in: scripts/ Sam James
2024-01-12 11:08 Sam James
2024-01-12 11:08 Sam James
2023-10-02  3:25 Joshua Kinard
2023-02-22 16:21 Sam James
2022-04-19 21:17 Mike Gilbert
2022-04-19 21:12 Mike Gilbert
2021-09-02 10:58 Ulrich Müller
2020-03-30  1:37 Matt Turner
2020-03-29 17:45 Matt Turner
2020-03-29 17:45 Matt Turner
2020-03-29 17:45 Matt Turner
2020-03-29 17:45 Matt Turner
2020-01-19  5:08 Zac Medico
2020-01-19  4:39 Zac Medico
2017-03-04 18:11 Jorge Manuel B. S. Vicetto
2017-03-04 18:11 Jorge Manuel B. S. Vicetto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1591535693.b95aa174ca6822b3c63d327938b32a3d637fae5a.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox