diff options
author | Ulrich Müller <ulm@gentoo.org> | 2020-06-07 15:13:00 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2020-06-07 15:14:53 +0200 |
commit | b95aa174ca6822b3c63d327938b32a3d637fae5a (patch) | |
tree | 27e4d164f8a6406b53e8c7f69aaac6ac6154f60c /scripts | |
parent | media-libs/x265: Fix typo for ppc asm on main variant (diff) | |
download | gentoo-b95aa174ca6822b3c63d327938b32a3d637fae5a.tar.gz gentoo-b95aa174ca6822b3c63d327938b32a3d637fae5a.tar.bz2 gentoo-b95aa174ca6822b3c63d327938b32a3d637fae5a.zip |
scripts/bootstrap.sh: Fix copyright years in output.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bootstrap.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index c06e25dba133..46026a79e1c9 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 |