summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2012-01-31 12:58:03 +0100
committerGuillem Jover <guillem@debian.org>2012-02-01 06:30:30 +0100
commit33f45255ee45479a39c9e913223ddbb17d602aa9 (patch)
tree7692e5e3f14a349b87888bd1f7b0826a0377d71a
parent9971d255b38c2dc0da40a3ec9c7cf4b1631366f8 (diff)
downloaddpkg-33f45255ee45479a39c9e913223ddbb17d602aa9.tar.gz
Move copyright information from --version output to file comment headers
Having to keep this information twice is error-prone as it easily gets out of sync. Having to translate it is bothersome. It's not consistent across dpkg tools, some do print it some don't. It's currently not accurate, as the output would need to include the holders for all files that end up being part of the binary. And listing it in the --versions output is visually annoying and the wrong place. Just keep this where it belongs, at the file comment headers, above the license information.
-rw-r--r--dpkg-split/main.c4
-rw-r--r--dselect/main.cc10
-rwxr-xr-xscripts/changelog/debian.pl6
-rwxr-xr-xscripts/dpkg-architecture.pl6
-rwxr-xr-xscripts/dpkg-buildflags.pl3
-rwxr-xr-xscripts/dpkg-buildpackage.pl9
-rwxr-xr-xscripts/dpkg-distaddfile.pl5
-rwxr-xr-xscripts/dpkg-genchanges.pl7
-rwxr-xr-xscripts/dpkg-gencontrol.pl7
-rwxr-xr-xscripts/dpkg-gensymbols.pl6
-rwxr-xr-xscripts/dpkg-maintscript-helper.sh5
-rwxr-xr-xscripts/dpkg-mergechangelogs.pl2
-rwxr-xr-xscripts/dpkg-parsechangelog.pl7
-rwxr-xr-xscripts/dpkg-shlibdeps.pl12
-rwxr-xr-xscripts/dpkg-source.pl5
-rwxr-xr-xscripts/dpkg-vendor.pl3
-rw-r--r--src/divertcmd.c5
-rw-r--r--src/statcmd.c4
-rw-r--r--src/t/100_dpkg_divert.t2
-rw-r--r--utils/update-alternatives.c5
20 files changed, 32 insertions, 81 deletions
diff --git a/dpkg-split/main.c b/dpkg-split/main.c
index 9b8b09a2a..91e67be29 100644
--- a/dpkg-split/main.c
+++ b/dpkg-split/main.c
@@ -2,7 +2,7 @@
* dpkg-split - splitting and joining of multipart *.deb archives
* main.c - main program
*
- * Copyright © 1995 Ian Jackson <ian@chiark.greenend.org.uk>
+ * Copyright © 1994-1996 Ian Jackson <ian@chiark.greenend.org.uk>
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -46,7 +46,7 @@ printversion(const struct cmdinfo *cip, const char *value)
{
printf(_("Debian `%s' package split/join tool; version %s.\n"),
SPLITTER, DPKG_VERSION_ARCH);
- printf(_("Copyright (C) 1994-1996 Ian Jackson.\n"));
+
printf(_(
"This is free software; see the GNU General Public License version 2 or\n"
"later for copying conditions. There is NO warranty.\n"));
diff --git a/dselect/main.cc b/dselect/main.cc
index 357f32320..0bdefaa06 100644
--- a/dselect/main.cc
+++ b/dselect/main.cc
@@ -2,7 +2,7 @@
* dselect - Debian package maintenance user interface
* main.cc - main program
*
- * Copyright © 1994,1995 Ian Jackson <ian@chiark.greenend.org.uk>
+ * Copyright © 1994-1996 Ian Jackson <ian@chiark.greenend.org.uk>
* Copyright © 2000,2001 Wichert Akkerman <wakkerma@debian.org>
*
* This is free software; you can redistribute it and/or modify
@@ -157,10 +157,6 @@ static const menuentry menuentries[]= {
static const char programdesc[]=
N_("Debian `%s' package handling frontend version %s.\n");
-static const char copyrightstring[]= N_(
- "Copyright (C) 1994-1996 Ian Jackson.\n"
- "Copyright (C) 2000,2001 Wichert Akkerman.\n");
-
static const char licensestring[]= N_(
"This is free software; see the GNU General Public License version 2 or\n"
"later for copying conditions. There is NO warranty.\n");
@@ -169,7 +165,6 @@ static void DPKG_ATTR_NORET
printversion(const struct cmdinfo *ci, const char *value)
{
printf(gettext(programdesc), DSELECT, DPKG_VERSION_ARCH);
- printf("%s", gettext(copyrightstring));
printf("%s", gettext(licensestring));
m_output(stdout, _("<standard output>"));
@@ -422,7 +417,8 @@ refreshmenu(void)
"Press <enter> to confirm selection. ^L redraws screen.\n\n"));
attrset(A_NORMAL);
- addstr(gettext(copyrightstring));
+ addstr(_("Copyright (C) 1994-1996 Ian Jackson.\n"
+ "Copyright (C) 2000,2001 Wichert Akkerman.\n"));
addstr(gettext(licensestring));
modstatdb_init();
diff --git a/scripts/changelog/debian.pl b/scripts/changelog/debian.pl
index c5fe37de2..6d7f63ca5 100755
--- a/scripts/changelog/debian.pl
+++ b/scripts/changelog/debian.pl
@@ -2,6 +2,9 @@
#
# parsechangelog/debian
#
+# Copyright © 1996 Ian Jackson
+# Copyright © 2005,2007 Frank Lichtenheld
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -34,9 +37,6 @@ sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
printf _g("
-Copyright (C) 1996 Ian Jackson.
-Copyright (C) 2005,2007 Frank Lichtenheld.");
- printf _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/scripts/dpkg-architecture.pl b/scripts/dpkg-architecture.pl
index 97c0b9f8b..0595a799f 100755
--- a/scripts/dpkg-architecture.pl
+++ b/scripts/dpkg-architecture.pl
@@ -2,8 +2,8 @@
#
# dpkg-architecture
#
+# Copyright © 1999-2001 Marcus Brinkmann <brinkmd@debian.org>
# Copyright © 2004-2005 Scott James Remnant <scott@netsplit.com>,
-# Copyright © 1999 Marcus Brinkmann <brinkmd@debian.org>.
# Copyright © 2006-2011 Guillem Jover <guillem@debian.org>
#
# This program is free software; you can redistribute it and/or modify
@@ -37,10 +37,6 @@ sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
printf _g("
-Copyright (C) 1999-2001 Marcus Brinkmann <brinkmd\@debian.org>.
-Copyright (C) 2004-2005 Scott James Remnant <scott\@netsplit.com>.");
-
- printf _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/scripts/dpkg-buildflags.pl b/scripts/dpkg-buildflags.pl
index 8f4b7f0e2..d0f9fa8a1 100755
--- a/scripts/dpkg-buildflags.pl
+++ b/scripts/dpkg-buildflags.pl
@@ -31,9 +31,6 @@ sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
printf _g("
-Copyright (C) 2010-2011 Raphael Hertzog <hertzog\@debian.org>.");
-
- printf _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl
index 2a36308fe..8abe5a27a 100755
--- a/scripts/dpkg-buildpackage.pl
+++ b/scripts/dpkg-buildpackage.pl
@@ -2,6 +2,10 @@
#
# dpkg-buildpackage
#
+# Copyright © 1996 Ian Jackson
+# Copyright © 2000 Wichert Akkerman
+# Copyright © 2007 Frank Lichtenheld
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -38,11 +42,6 @@ sub showversion {
printf _g("Debian %s version %s.\n"), $progname, $version;
print _g("
-Copyright (C) 1996 Ian Jackson.
-Copyright (C) 2000 Wichert Akkerman
-Copyright (C) 2007 Frank Lichtenheld");
-
- print _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/scripts/dpkg-distaddfile.pl b/scripts/dpkg-distaddfile.pl
index 7b5274e73..45f5d2680 100755
--- a/scripts/dpkg-distaddfile.pl
+++ b/scripts/dpkg-distaddfile.pl
@@ -2,6 +2,8 @@
#
# dpkg-distaddfile
#
+# Copyright © 1996 Ian Jackson
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -34,9 +36,6 @@ sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
printf _g("
-Copyright (C) 1996 Ian Jackson.");
-
- printf _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl
index 2d0b79d91..5f713630e 100755
--- a/scripts/dpkg-genchanges.pl
+++ b/scripts/dpkg-genchanges.pl
@@ -2,6 +2,9 @@
#
# dpkg-genchanges
#
+# Copyright © 1996 Ian Jackson
+# Copyright © 2000,2001 Wichert Akkerman
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -96,10 +99,6 @@ sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
printf _g("
-Copyright (C) 1996 Ian Jackson.
-Copyright (C) 2000,2001 Wichert Akkerman.");
-
- printf _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/scripts/dpkg-gencontrol.pl b/scripts/dpkg-gencontrol.pl
index be30cc8d0..3a2185fdd 100755
--- a/scripts/dpkg-gencontrol.pl
+++ b/scripts/dpkg-gencontrol.pl
@@ -2,6 +2,9 @@
#
# dpkg-gencontrol
#
+# Copyright © 1996 Ian Jackson
+# Copyright © 2000,2002 Wichert Akkerman
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -57,10 +60,6 @@ sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
printf _g("
-Copyright (C) 1996 Ian Jackson.
-Copyright (C) 2000,2002 Wichert Akkerman.");
-
- printf _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/scripts/dpkg-gensymbols.pl b/scripts/dpkg-gensymbols.pl
index 06bbbba5b..c57433120 100755
--- a/scripts/dpkg-gensymbols.pl
+++ b/scripts/dpkg-gensymbols.pl
@@ -2,6 +2,8 @@
#
# dpkg-gensymbols
#
+# Copyright © 2007 Raphaël Hertzog
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -49,10 +51,6 @@ sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
printf _g("
-Copyright (C) 2007 Raphael Hertzog.
-");
-
- printf _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/scripts/dpkg-maintscript-helper.sh b/scripts/dpkg-maintscript-helper.sh
index 92088ae48..8c8b9ac66 100755
--- a/scripts/dpkg-maintscript-helper.sh
+++ b/scripts/dpkg-maintscript-helper.sh
@@ -296,11 +296,6 @@ mv_conffile)
cat <<-END
Debian $PROGNAME version $version.
- Copyright (C) 2010 Raphaël Hertzog <hertzog@debian.org>
- Copyright (C) 2008 Joey Hess <joeyh@debian.org>
- Copyright (C) 2007 Guillem Jover <guillem@debian.org>
- Copyright (C) 2005 Scott James Remnant
-
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
END
diff --git a/scripts/dpkg-mergechangelogs.pl b/scripts/dpkg-mergechangelogs.pl
index 1729368c7..152aeb039 100755
--- a/scripts/dpkg-mergechangelogs.pl
+++ b/scripts/dpkg-mergechangelogs.pl
@@ -52,8 +52,6 @@ BEGIN {
sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
- printf "\n" . _g("Copyright (C) 2009-2010 Raphael Hertzog.");
-
printf "\n" . _g(
"This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
diff --git a/scripts/dpkg-parsechangelog.pl b/scripts/dpkg-parsechangelog.pl
index 2ab760891..705b336d7 100755
--- a/scripts/dpkg-parsechangelog.pl
+++ b/scripts/dpkg-parsechangelog.pl
@@ -2,6 +2,9 @@
#
# dpkg-parsechangelog
#
+# Copyright © 1996 Ian Jackson
+# Copyright © 2001 Wichert Akkerman
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -31,10 +34,6 @@ sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
printf _g("
-Copyright (C) 1996 Ian Jackson.
-Copyright (C) 2001 Wichert Akkerman");
-
- printf _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl
index 25afbd4ca..60545005b 100755
--- a/scripts/dpkg-shlibdeps.pl
+++ b/scripts/dpkg-shlibdeps.pl
@@ -2,6 +2,11 @@
#
# dpkg-shlibdeps
#
+# Copyright © 1996 Ian Jackson
+# Copyright © 2000 Wichert Akkerman
+# Copyright © 2006 Frank Lichtenheld
+# Copyright © 2007 Raphaël Hertzog
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -535,13 +540,6 @@ sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
printf _g("
-Copyright (C) 1996 Ian Jackson.
-Copyright (C) 2000 Wichert Akkerman.
-Copyright (C) 2006 Frank Lichtenheld.
-Copyright (C) 2007 Raphael Hertzog.
-");
-
- printf _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl
index 1b90491dd..881d5219d 100755
--- a/scripts/dpkg-source.pl
+++ b/scripts/dpkg-source.pl
@@ -455,11 +455,6 @@ sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
print _g("
-Copyright (C) 1996 Ian Jackson
-Copyright (C) 1997 Klee Dienes
-Copyright (C) 2008 Raphael Hertzog");
-
- print _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/scripts/dpkg-vendor.pl b/scripts/dpkg-vendor.pl
index f1dabe358..3ea1c9a7d 100755
--- a/scripts/dpkg-vendor.pl
+++ b/scripts/dpkg-vendor.pl
@@ -31,9 +31,6 @@ sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
printf _g("
-Copyright (C) 2009 Raphael Hertzog <hertzog\@debian.org>.");
-
- printf _g("
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
");
diff --git a/src/divertcmd.c b/src/divertcmd.c
index e7249bddd..644476739 100644
--- a/src/divertcmd.c
+++ b/src/divertcmd.c
@@ -67,11 +67,6 @@ printversion(const struct cmdinfo *cip, const char *value)
DPKG_VERSION_ARCH);
printf(_(
-"Copyright (C) 1995 Ian Jackson.\n"
-"Copyright (C) 2000,2001 Wichert Akkerman.\n"
-"Copyright (C) 2010 Guillem Jover.\n"));
-
- printf(_(
"This is free software; see the GNU General Public License version 2 or\n"
"later for copying conditions. There is NO warranty.\n"));
diff --git a/src/statcmd.c b/src/statcmd.c
index 47dcf1242..b016097d2 100644
--- a/src/statcmd.c
+++ b/src/statcmd.c
@@ -58,10 +58,6 @@ printversion(const struct cmdinfo *cip, const char *value)
DPKG_VERSION_ARCH);
printf(_(
-"Copyright (C) 2000, 2001 Wichert Akkerman.\n"
-"Copyright (C) 2006-2009 Guillem Jover.\n"));
-
- printf(_(
"This is free software; see the GNU General Public License version 2 or\n"
"later for copying conditions. There is NO warranty.\n"));
diff --git a/src/t/100_dpkg_divert.t b/src/t/100_dpkg_divert.t
index 5a4603153..c38c38eae 100644
--- a/src/t/100_dpkg_divert.t
+++ b/src/t/100_dpkg_divert.t
@@ -131,7 +131,7 @@ sub call_divert_badusage {
call_divert(['--help'], expect_stdout_like => $usagere,
expect_stderr => '');
-call_divert(['--version'], expect_stdout_like => qr/.*dpkg-divert.*Copyright.*free software.*/s,
+call_divert(['--version'], expect_stdout_like => qr/.*dpkg-divert.*free software.*/s,
expect_stderr => '');
call_divert_badusage(['--jachsmitbju'], qr/unknown option/);
diff --git a/utils/update-alternatives.c b/utils/update-alternatives.c
index 16fd8c66c..38a7decad 100644
--- a/utils/update-alternatives.c
+++ b/utils/update-alternatives.c
@@ -81,11 +81,6 @@ version(void)
printf("\n");
printf(_(
-"Copyright (C) 1995 Ian Jackson.\n"
-"Copyright (C) 2000-2002 Wichert Akkerman.\n"
-"Copyright (C) 2009-2010 Raphael Hertzog.\n"));
-
- printf(_(
"This is free software; see the GNU General Public License version 2 or\n"
"later for copying conditions. There is NO warranty.\n"));
}