From eab596b672b18c8db1103d99d7a9408a0fc9a09c Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 2 Jan 2023 12:33:58 +0100 Subject: Updated copyright notice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .irbrc | 2 +- README.md | 2 +- bin/db | 2 +- bin/e | 2 +- bin/emacsclient-a-nw | 2 +- bin/find-broken-symlinks | 2 +- bin/gen-self-signed | 2 +- bin/git-default | 2 +- bin/git-fork | 2 +- bin/git-nuke | 2 +- bin/git-who | 2 +- bin/i3status.sh | 2 +- bin/license | 28 +++++++++++++--------------- bin/lock.sh | 2 +- bin/sass | 2 +- bin/test/README.md.expected | 2 +- bin/test/main.cpp.expected | 12 ++++++------ bin/test/test.sh | 2 +- bin/toggle-keyboard-layout.sh | 2 +- bin/vpnsetup | 2 +- bin/xo | 2 +- bin/xspf_extractor | 4 ++-- bin/zypper-purgerepos | 2 +- bin/zypper-rup | 2 +- install.sh | 2 +- 25 files changed, 43 insertions(+), 45 deletions(-) diff --git a/.irbrc b/.irbrc index 1c3ea4a..3db24fe 100644 --- a/.irbrc +++ b/.irbrc @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright (C) 2014-2022 Miquel Sabaté Solà +# Copyright (C) 2014-2023 Miquel Sabaté Solà # # 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 diff --git a/README.md b/README.md index 5343d29..3cda481 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ config files, please send me an email. You can find the full license in the `LICENSE` file and below: ``` -Copyright (C) 2014-2022 Miquel Sabaté Solà +Copyright (C) 2014-2023 Miquel Sabaté Solà 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 diff --git a/bin/db b/bin/db index f300478..9ea279a 100644 --- a/bin/db +++ b/bin/db @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# Copyright (C) 2014-2022 Miquel Sabaté Solà +# Copyright (C) 2014-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/e b/bin/e index 709a24a..badfa32 100755 --- a/bin/e +++ b/bin/e @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2019-2022 Miquel Sabaté Solà +# Copyright (C) 2019-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/emacsclient-a-nw b/bin/emacsclient-a-nw index e7dbe18..a8c2693 100755 --- a/bin/emacsclient-a-nw +++ b/bin/emacsclient-a-nw @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2019-2022 Miquel Sabaté Solà +# Copyright (C) 2019-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/find-broken-symlinks b/bin/find-broken-symlinks index 5428919..55b598e 100755 --- a/bin/find-broken-symlinks +++ b/bin/find-broken-symlinks @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# Copyright (C) 2020-2022 Miquel Sabaté Solà +# Copyright (C) 2020-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/gen-self-signed b/bin/gen-self-signed index a7e1629..ff98ca7 100755 --- a/bin/gen-self-signed +++ b/bin/gen-self-signed @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2018-2022 Miquel Sabaté Solà +# Copyright (C) 2018-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/git-default b/bin/git-default index 3dbd052..48b8082 100755 --- a/bin/git-default +++ b/bin/git-default @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2022 Miquel Sabaté Solà +# Copyright (C) 2022-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/git-fork b/bin/git-fork index 80b3251..bfe4cb7 100755 --- a/bin/git-fork +++ b/bin/git-fork @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2015-2022 Miquel Sabaté Solà +# Copyright (C) 2015-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/git-nuke b/bin/git-nuke index 1b5e86d..f86cb57 100755 --- a/bin/git-nuke +++ b/bin/git-nuke @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2020-2022 Miquel Sabaté Solà +# Copyright (C) 2020-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/git-who b/bin/git-who index 75619e4..3eb04dd 100755 --- a/bin/git-who +++ b/bin/git-who @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# Copyright (C) 2020-2022 Miquel Sabaté Solà +# Copyright (C) 2020-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/i3status.sh b/bin/i3status.sh index 3af9911..a4d4f68 100755 --- a/bin/i3status.sh +++ b/bin/i3status.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2020-2022 Miquel Sabaté Solà +# Copyright (C) 2020-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/license b/bin/license index 029b629..449848e 100755 --- a/bin/license +++ b/bin/license @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# Copyright (C) 2014-2022 Miquel Sabaté Solà +# Copyright (C) 2014-2023 Miquel Sabaté Solà # # 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 @@ -65,7 +65,7 @@ my $name = 'Miquel'; # The current year. I previously thought to be clever and set it to `date +%Y`, # but then I decided that I didn't want to be clever here to avoid problems and # be more flexible. -my $current_year = '2022'; +my $current_year = '2023'; # The command that feeds this command if no command line argument was given. my $default_cmd = "git grep -l 'Copyright' | xargs"; @@ -82,29 +82,28 @@ my $re = qr/ (.*)$ # Save the rest of the line. /x; - -sub update_file -{ +sub update_file { my ($file) = @_; open my $in, '<', $file or die "Can't open file $file"; - my $perm = (stat $in)[2] & 07777; + my $perm = ( stat $in )[2] & 07777; open my $out, '>', "$file.new" or die "Can't open file $file.new"; while (<$in>) { my $line = $_; - if ($line =~ $re) { + if ( $line =~ $re ) { + # Get the values from the regular expression safely. my $prev = ($1) ? $1 : ''; my $year = ($3) ? $3 : $current_year; - my $c = ($2) ? $2 : '(C)'; + my $c = ($2) ? $2 : '(C)'; my $next = ($6) ? $6 : ''; - $c =~ s/^\s//; + $c =~ s/^\s//; $year =~ s/^\s//; # Get the range of years straight. - my @years = split('-', $year); - if ($years[0] ne $current_year) { + my @years = split( '-', $year ); + if ( $years[0] ne $current_year ) { $year = "$years[0]-$current_year"; } @@ -119,15 +118,14 @@ sub update_file # And move the file while preserving the old permission bits. `mv $file.new $file`; open $in, '<', $file or die "Can't open file $file"; - chmod($perm | 0600, $in); + chmod( $perm | 0600, $in ); close($in); } - ## # Main: get the files from the command line and update them. -my @files = (@ARGV > 0) ? @ARGV : split(' ', `$default_cmd`); +my @files = ( @ARGV > 0 ) ? @ARGV : split( ' ', `$default_cmd` ); foreach my $f (@files) { - update_file($f); + update_file($f); } diff --git a/bin/lock.sh b/bin/lock.sh index ff923b1..56118b7 100755 --- a/bin/lock.sh +++ b/bin/lock.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2020-2022 Miquel Sabaté Solà +# Copyright (C) 2020-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/sass b/bin/sass index 564eef2..3066d83 100644 --- a/bin/sass +++ b/bin/sass @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2014-2022 Miquel Sabaté Solà +# Copyright (C) 2014-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/test/README.md.expected b/bin/test/README.md.expected index 7b36cbc..54a45fc 100644 --- a/bin/test/README.md.expected +++ b/bin/test/README.md.expected @@ -3,5 +3,5 @@ A readme file -Copyright © 2014-2022 Miquel Sabaté Solà, released under the MIT License. +Copyright © 2014-2023 Miquel Sabaté Solà, released under the MIT License. diff --git a/bin/test/main.cpp.expected b/bin/test/main.cpp.expected index 434dd56..08cf0e9 100644 --- a/bin/test/main.cpp.expected +++ b/bin/test/main.cpp.expected @@ -1,10 +1,10 @@ /* - * Copyright (C) 2015-2022 Miquel Sabaté Solà - * Copyright (c) 2015-2022 Miquel Sabaté Solà - * Copyright (C) 2015-2022 Miquel Sabaté Solà - * Copyright (C) 2013-2022 Miquel Sabaté Solà - * Copyright (C) 2014-2022 Miquel Sabaté Solà - * Copyright (C) 2015-2022 Miquel Sabaté Solà + * Copyright (C) 2015-2023 Miquel Sabaté Solà + * Copyright (c) 2015-2023 Miquel Sabaté Solà + * Copyright (C) 2015-2023 Miquel Sabaté Solà + * Copyright (C) 2013-2023 Miquel Sabaté Solà + * Copyright (C) 2014-2023 Miquel Sabaté Solà + * Copyright (C) 2015-2023 Miquel Sabaté Solà */ int main(int argc, char *argv[]) diff --git a/bin/test/test.sh b/bin/test/test.sh index 95171c1..6208fab 100755 --- a/bin/test/test.sh +++ b/bin/test/test.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2014-2022 Miquel Sabaté Solà +# Copyright (C) 2014-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/toggle-keyboard-layout.sh b/bin/toggle-keyboard-layout.sh index e9dd47e..056bf26 100755 --- a/bin/toggle-keyboard-layout.sh +++ b/bin/toggle-keyboard-layout.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2016-2022 Miquel Sabaté Solà +# Copyright (C) 2016-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/vpnsetup b/bin/vpnsetup index fc10780..735f876 100755 --- a/bin/vpnsetup +++ b/bin/vpnsetup @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2016-2022 Miquel Sabaté Solà +# Copyright (C) 2016-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/xo b/bin/xo index e1fedfc..2259f7f 100755 --- a/bin/xo +++ b/bin/xo @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright (C) 2020-2022 Miquel Sabaté Solà +# Copyright (C) 2020-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/xspf_extractor b/bin/xspf_extractor index ec2a1e3..91d437a 100755 --- a/bin/xspf_extractor +++ b/bin/xspf_extractor @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# Copyright (C) 2017-2022 Miquel Sabaté Solà +# Copyright (C) 2017-2023 Miquel Sabaté Solà # # 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 @@ -56,7 +56,7 @@ EOF sub version { print < +Copyright (C) 2017-2023 Miquel Sabaté Solà License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. diff --git a/bin/zypper-purgerepos b/bin/zypper-purgerepos index 0bc63bc..46559c0 100755 --- a/bin/zypper-purgerepos +++ b/bin/zypper-purgerepos @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2018-2022 Miquel Sabaté Solà +# Copyright (C) 2018-2023 Miquel Sabaté Solà # # 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 diff --git a/bin/zypper-rup b/bin/zypper-rup index e79438c..aa567ca 100755 --- a/bin/zypper-rup +++ b/bin/zypper-rup @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2020-2022 Miquel Sabaté Solà +# Copyright (C) 2020-2023 Miquel Sabaté Solà # # 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 diff --git a/install.sh b/install.sh index 495795a..cb92d47 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2014-2022 Miquel Sabaté Solà +# Copyright (C) 2014-2023 Miquel Sabaté Solà # # 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 -- cgit v1.2.3