scripts: deduplicate localized copyright messages

We don't need to translate the "Copyright YEAR AUTHOR" part, no part of
it should probably be translated and it definitely shouldn't turn every
single license terms notice into a separate translation just because the
author/year is different.

Fixes FS#58452
Also consistently add a blank line after the copyright and before the
license terms.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Eli Schwartz 2018-09-18 09:42:42 -04:00 committed by Allan McRae
parent d03409ccde
commit 58c76daf5e
5 changed files with 11 additions and 6 deletions

View file

@ -1206,9 +1206,10 @@ usage() {
version() { version() {
printf "makepkg (pacman) %s\n" "$makepkg_version" printf "makepkg (pacman) %s\n" "$makepkg_version"
printf -- "Copyright (c) 2006-2018 Pacman Development Team <pacman-dev@archlinux.org>.\n"
printf -- "Copyright (C) 2002-2006 Judd Vinet <jvinet@zeroflux.org>.\n"
printf '\n'
printf -- "$(gettext "\ printf -- "$(gettext "\
Copyright (c) 2006-2018 Pacman Development Team <pacman-dev@archlinux.org>.\n\
Copyright (C) 2002-2006 Judd Vinet <jvinet@zeroflux.org>.\n\n\
This is free software; see the source for copying conditions.\n\ This is free software; see the source for copying conditions.\n\
There is NO WARRANTY, to the extent permitted by law.\n")" There is NO WARRANTY, to the extent permitted by law.\n")"
} }

View file

@ -54,8 +54,9 @@ usage() {
version() { version() {
printf "pacman-db-upgrade (pacman) %s\n" "$myver" printf "pacman-db-upgrade (pacman) %s\n" "$myver"
printf -- "Copyright (c) 2010-2018 Pacman Development Team <pacman-dev@archlinux.org>.\n"
printf '\n'
printf -- "$(gettext "\ printf -- "$(gettext "\
Copyright (c) 2010-2018 Pacman Development Team <pacman-dev@archlinux.org>.\n\
This is free software; see the source for copying conditions.\n\ This is free software; see the source for copying conditions.\n\
There is NO WARRANTY, to the extent permitted by law.\n")" There is NO WARRANTY, to the extent permitted by law.\n")"
} }

View file

@ -92,8 +92,9 @@ usage() {
version() { version() {
printf "pacman-key (pacman) %s\n" "${myver}" printf "pacman-key (pacman) %s\n" "${myver}"
printf -- "Copyright (c) 2010-2018 Pacman Development Team <pacman-dev@archlinux.org>.\n"
printf '\n'
printf -- "$(gettext "\ printf -- "$(gettext "\
Copyright (c) 2010-2018 Pacman Development Team <pacman-dev@archlinux.org>.\n\
This is free software; see the source for copying conditions.\n\ This is free software; see the source for copying conditions.\n\
There is NO WARRANTY, to the extent permitted by law.\n")" There is NO WARRANTY, to the extent permitted by law.\n")"
} }

View file

@ -70,8 +70,9 @@ This delta file can then be added to a database using repo-add.\n")"
version() { version() {
printf "pkgdelta (pacman) %s\n" "$myver" printf "pkgdelta (pacman) %s\n" "$myver"
printf -- "Copyright (c) 2009 Xavier Chantry <shiningxc@gmail.com>.\n"
printf '\n'
printf -- "$(gettext "\ printf -- "$(gettext "\
Copyright (c) 2009 Xavier Chantry <shiningxc@gmail.com>.\n\n\
This is free software; see the source for copying conditions.\n\ This is free software; see the source for copying conditions.\n\
There is NO WARRANTY, to the extent permitted by law.\n")" There is NO WARRANTY, to the extent permitted by law.\n")"
} }

View file

@ -93,8 +93,9 @@ See %s(8) for more details and descriptions of the available options.\n")" $cmd
version() { version() {
cmd=${0##*/} cmd=${0##*/}
printf "%s (pacman) %s\n\n" "$cmd" "$myver" printf "%s (pacman) %s\n\n" "$cmd" "$myver"
printf -- "Copyright (c) 2006-2018 Pacman Development Team <pacman-dev@archlinux.org>.\n"
printf '\n'
printf -- "$(gettext "\ printf -- "$(gettext "\
Copyright (c) 2006-2018 Pacman Development Team <pacman-dev@archlinux.org>\n\n\
This is free software; see the source for copying conditions.\n\ This is free software; see the source for copying conditions.\n\
There is NO WARRANTY, to the extent permitted by law.\n")" There is NO WARRANTY, to the extent permitted by law.\n")"
} }