]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update scripts in util/ to drop the year information from the individual source files.
authorOndřej Surý <ondrej@sury.org>
Mon, 19 Feb 2018 11:03:28 +0000 (12:03 +0100)
committerOndřej Surý <ondrej@sury.org>
Fri, 23 Feb 2018 09:10:52 +0000 (10:10 +0100)
util/COPYRIGHT
util/COPYRIGHT.BRIEF
util/COPYRIGHT.BSDI
util/COPYRIGHT.NAI
util/COPYRIGHT.NOM
util/COPYRIGHT.PORTION
util/copyrights
util/file_year.sh [deleted file]
util/merge_copyrights
util/recent_changes.sh [deleted file]

index 36fd94a48ae5c58bec2fb18421ddff0fa4c36512..e0a6aa6a665619030096b4ac43741ccd0ce2ca93 100644 (file)
@@ -1,5 +1,8 @@
-Copyright (C) @SYSYEARS@  Internet Systems Consortium, Inc. ("ISC")
+Copyright (C) Internet Systems Consortium, Inc. ("ISC")
 
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+See the COPYRIGHT file distributed with this work for additional
+information regarding copyright ownership.
index 36fd94a48ae5c58bec2fb18421ddff0fa4c36512..7e8e0f41c827ae288ce51b1d774b2eb061f7f9c9 100644 (file)
@@ -3,3 +3,6 @@ Copyright (C) @SYSYEARS@  Internet Systems Consortium, Inc. ("ISC")
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+See the COPYRIGHT file distributed with this work for additional
+information regarding copyright ownership.
index c7f0bb3e31be9211716c43403fc9d76fd0018e99..d12bfdc0a21f3fb219f551891472fd761f0e34ee 100644 (file)
@@ -4,6 +4,9 @@ This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
+See the COPYRIGHT file distributed with this work for additional
+information regarding copyright ownership.
+
 This code is derived from software contributed to ISC by
 Berkeley Software Design, Inc.
 
index 6511e2a39a539da4d939106f5633b8f81c2dacfa..9fa858d88b99f32d7f2cae9ca04dea9156299abc 100644 (file)
@@ -4,7 +4,10 @@ This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
-Portions Copyright (C) 1995-2000 by Network Associates, Inc.
+See the COPYRIGHT file distributed with this work for additional
+information regarding copyright ownership.
+
+Portions Copyright (C) Network Associates, Inc.
 
 Permission to use, copy, modify, and distribute this software for any
 purpose with or without fee is hereby granted, provided that the above
index b520f41e42850cb2d57da39ec4806d57918cf3ed..4ce20cbcd6c2bd14b96ea7dcb7c6614df81fff30 100644 (file)
@@ -4,7 +4,10 @@ This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
-Portions Copyright (C) @NOMYEARS@  Nominum, Inc.
+See the COPYRIGHT file distributed with this work for additional
+information regarding copyright ownership.
+
+Portions Copyright (C) Nominum, Inc.
 
 Permission to use, copy, modify, and distribute this software for any
 purpose with or without fee is hereby granted, provided that the above
index c30dabb705366296af003de53dede8c329b98499..5a8c40a361061cb0cbec7c5f408633447db1e194 100644 (file)
@@ -3,3 +3,6 @@ Portions Copyright (C) @SYSYEARS@  Internet Systems Consortium, Inc. ("ISC")
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+See the COPYRIGHT file distributed with this work for additional
+information regarding copyright ownership.
index b9b17b52347d1a58867012f16e8f8b71db9b7522..849cf10fd4f11d23020376870dee588bc89bb9a4 100644 (file)
@@ -3,7 +3,7 @@
 ./.gitlab-ci.yml                               X       2018
 ./Atffile                                      X       2011
 ./CHANGES                                      X       2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
-./COPYRIGHT                                    TXT     1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
+./COPYRIGHT                                    X       1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
 ./HISTORY                                      X       2010,2013,2016,2017
 ./HISTORY.md                                   MKD     2017
 ./Kyuafile                                     X       2017
diff --git a/util/file_year.sh b/util/file_year.sh
deleted file mode 100644 (file)
index a2bffe2..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2012, 2016  Internet Systems Consortium, Inc. ("ISC")
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-# $Id$
-
-# Given a file in the currently checked-out branch of the Git
-# repository, find out in what year it was most recently committed.
-# Used by merge_copyrights.
-
-rev=`git rev-list HEAD -- "$1" | head -n 1`
-git show --pretty=format:%ai $rev | head -n 1 | sed 's;-.*;;'
index 55b9f97c3bbad793d95f9fc69d63a50399b9686f..5dd8596a2aa26f00b590c0c51e736b05b2dff159 100644 (file)
@@ -10,7 +10,6 @@ use strict;
 
 my %file_types = ();
 my %file_years = ();
-my %exists = ();
 
 open(COPYRIGHTS, "<util/copyrights") || die "can't open ./util/copyrights: $!";
 while (<COPYRIGHTS>) {
@@ -25,20 +24,10 @@ my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime(time());
 $sec = $min = $hour = $mday = $mon = $wday = $yday = $isdst = 0;
 $year += 1900;
 
-open(FILES, "git ls-files | sed 's;^;./;' |") || die "git ls-files: $!";
-while (<FILES>) {
-    chomp;
-    $exists{$_} = 1;
-}
-close(FILES);
-
-open(CHANGES, "sh util/recent_changes.sh |") || die "recent_changes.sh: $!";
+open(CHANGES, "git ls-files | sed 's;^;./;' | sort |") || die "git ls-files: $!";
 while (<CHANGES>) {
     chomp;
 
-    # this file isn't in the repository now
-    next unless ($exists{$_});
-
     next if (m%/\.\# |         # CVS old conflict file
               /CVS/ |          # CVS directory
               /.git/ |         # git directory
@@ -133,13 +122,9 @@ while (<CHANGES>) {
        } else {
            $file_types{$_} = "?";
        }
-       my $m_year = int(`sh util/file_year.sh $_`);
        if (($file_types{$_} eq "MAN" || $file_types{$_} eq "HTML") &&
            $base =~ /\.docbook$/ && -e $base) {
           $file_years{$_} = "DOCBOOK";
-       } elsif ($m_year != $year) {
-           print "$_: must set copyright year(s) manually\n";
-           $file_years{$_} = "????";
        } else {
            $file_years{$_} = "$year";
        }
diff --git a/util/recent_changes.sh b/util/recent_changes.sh
deleted file mode 100644 (file)
index 4279db7..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2012, 2016, 2017  Internet Systems Consortium, Inc. ("ISC")
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-# Find the list of files that have been touched in the Git repository
-# during the current calendar year.  This is done by walking backwards
-# through the output of "git whatchanged" until a year other than the
-# current one is seen.  Used by merge_copyrights.
-
-thisyear=`date +%Y`
-when="`expr $thisyear - 1`-12-31"
-git whatchanged --since="$when" --pretty="" | awk '
-    BEGIN { change=0 }
-    NF == 0 { next; }
-    $(NF-1) ~ /[AM]/ { print "./" $NF; change=1 }
-    END { if (change) print "./COPYRIGHT" } ' | sort | uniq