Просмотр исходного кода

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.
Guillem Jover лет назад: 14
Родитель
Сommit
33f45255ee

+ 2 - 2
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"));

+ 3 - 7
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();

+ 3 - 3
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
@@ -33,9 +36,6 @@ $progname = "parsechangelog/$progname";
 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.

+ 1 - 5
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
@@ -36,10 +36,6 @@ textdomain("dpkg-dev");
 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.

+ 0 - 3
scripts/dpkg-buildflags.pl

@@ -30,9 +30,6 @@ textdomain("dpkg-dev");
 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.

+ 4 - 5
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
@@ -37,11 +41,6 @@ textdomain("dpkg-dev");
 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.

+ 2 - 3
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
@@ -33,9 +35,6 @@ my $fileslistfile = 'debian/files';
 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.

+ 3 - 4
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
@@ -95,10 +98,6 @@ sub binary_opt() { return (($include == BIN) ? '-b' :
 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.

+ 3 - 4
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
@@ -56,10 +59,6 @@ my $substvars_loaded = 0;
 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.

+ 2 - 4
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
@@ -48,10 +50,6 @@ my $host_arch = get_host_arch();
 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.

+ 0 - 5
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

+ 0 - 2
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.

+ 3 - 4
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
@@ -30,10 +33,6 @@ my %options;
 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.

+ 5 - 7
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
@@ -534,13 +539,6 @@ if (!$stdout) {
 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.

+ 0 - 5
scripts/dpkg-source.pl

@@ -454,11 +454,6 @@ sub setopmode {
 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.

+ 0 - 3
scripts/dpkg-vendor.pl

@@ -30,9 +30,6 @@ textdomain("dpkg-dev");
 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.

+ 0 - 5
src/divertcmd.c

@@ -66,11 +66,6 @@ printversion(const struct cmdinfo *cip, const char *value)
 	printf(_("Debian %s version %s.\n"), dpkg_get_progname(),
 	       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"));

+ 0 - 4
src/statcmd.c

@@ -57,10 +57,6 @@ printversion(const struct cmdinfo *cip, const char *value)
 	printf(_("Debian %s version %s.\n"), dpkg_get_progname(),
 	       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"));

+ 1 - 1
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/);

+ 0 - 5
utils/update-alternatives.c

@@ -80,11 +80,6 @@ version(void)
 	printf(_("Debian %s version %s.\n"), PROGNAME, VERSION);
 	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"));