diff options
author | Bernhard Schmidt <berni@debian.org> | 2020-09-01 16:53:32 +0200 |
---|---|---|
committer | Bernhard Schmidt <berni@debian.org> | 2020-09-01 16:53:32 +0200 |
commit | 886dccf631de661ea1b4c8017de98b88b93d7f1c (patch) | |
tree | 2f74f9b3f93a35591ffdb305e3e2876cbb9a0c1d /dev-tools/update-copyright.sh | |
parent | 9ce71e1c58a83737b045861173254911fda9a76a (diff) | |
parent | 57f0b7b331088e489e93ae89ee0aed98381d8806 (diff) |
Update upstream source from tag 'upstream/2.5_beta3'
Update to upstream version '2.5~beta3'
with Debian dir 08bf4b8b33e73a97458e7fd53ec989aa541745cd
Diffstat (limited to 'dev-tools/update-copyright.sh')
-rwxr-xr-x | dev-tools/update-copyright.sh | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/dev-tools/update-copyright.sh b/dev-tools/update-copyright.sh deleted file mode 100755 index a874631..0000000 --- a/dev-tools/update-copyright.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh -# update-copyright-sh - Simple tool to update the Copyright lines -# in all files checked into git -# -# Copyright (C) 2016-2018 David Sommerseth <davids@openvpn.net> -# -# 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# - -# Basic shell sanity -set -eu - -# Simple argument control -if [ $# -ne 1 ]; then - echo "Usage: $0 <New Copyright Year>" - exit 1 -fi - -# Only update Copyright lines with these owners -# The 'or' operator is GNU sed specific, and must be \| -UPDATE_COPYRIGHT_LINES="@openvpn\.net\|@fox-it\.com\|@sophos.com\|@eurephia\.net\|@greenie\.muc\.de" -COPY_YEAR="$1" - -cd "$(git rev-parse --show-toplevel)" -for file in $(git ls-files | grep -v vendor/); -do - echo -n "Updating $file ..." - # The first sed operation covers 20xx-20yy copyright lines, - # The second sed operation changes 20xx -> 20xx-20yy - sed -e "/$UPDATE_COPYRIGHT_LINES/s/\(Copyright (C) 20..-\)\(20..\)[[:blank:]]\+/\1$COPY_YEAR /" \ - -e "/$UPDATE_COPYRIGHT_LINES/s/\(Copyright (C) \)\(20..\)[[:blank:]]\+/\1\2-$COPY_YEAR /" \ - -i $file - echo " Done" -done -echo -echo "** All files updated with $COPY_YEAR as the ending copyright year" -echo -exit 0 |