diff options
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/db | 2 | ||||
| -rwxr-xr-x | bin/e | 2 | ||||
| -rwxr-xr-x | bin/emacsclient-a-nw | 2 | ||||
| -rwxr-xr-x | bin/find-broken-symlinks | 2 | ||||
| -rwxr-xr-x | bin/gen-self-signed | 2 | ||||
| -rwxr-xr-x | bin/git-default | 2 | ||||
| -rwxr-xr-x | bin/git-fork | 2 | ||||
| -rwxr-xr-x | bin/git-nuke | 2 | ||||
| -rwxr-xr-x | bin/git-who | 2 | ||||
| -rwxr-xr-x | bin/i3status.sh | 2 | ||||
| -rwxr-xr-x | bin/license | 28 | ||||
| -rwxr-xr-x | bin/lock.sh | 2 | ||||
| -rw-r--r-- | bin/sass | 2 | ||||
| -rw-r--r-- | bin/test/README.md.expected | 2 | ||||
| -rw-r--r-- | bin/test/main.cpp.expected | 12 | ||||
| -rwxr-xr-x | bin/test/test.sh | 2 | ||||
| -rwxr-xr-x | bin/toggle-keyboard-layout.sh | 2 | ||||
| -rwxr-xr-x | bin/vpnsetup | 2 | ||||
| -rwxr-xr-x | bin/xo | 2 | ||||
| -rwxr-xr-x | bin/xspf_extractor | 4 | ||||
| -rwxr-xr-x | bin/zypper-purgerepos | 2 | ||||
| -rwxr-xr-x | bin/zypper-rup | 2 |
22 files changed, 40 insertions, 42 deletions
@@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# Copyright (C) 2014-2022 Miquel Sabaté Solà <mikisabate@gmail.com> +# Copyright (C) 2014-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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 @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) 2019-2022 Miquel Sabaté Solà <mikisabate@gmail.com> +# Copyright (C) 2019-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2019-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2020-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2018-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2022-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2015-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2020-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2020-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2020-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2014-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2020-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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 @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2014-2022 Miquel Sabaté Solà <mikisabate@gmail.com> +# Copyright (C) 2014-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> - * Copyright (c) 2015-2022 Miquel Sabaté Solà <mikisabate@gmail.com> - * Copyright (C) 2015-2022 Miquel Sabaté Solà <mikisabate@gmail.com> - * Copyright (C) 2013-2022 Miquel Sabaté Solà <mikisabate@gmail.com> - * Copyright (C) 2014-2022 Miquel Sabaté Solà <mikisabate@gmail.com> - * Copyright (C) 2015-2022 Miquel Sabaté Solà <mikisabate@gmail.com> + * Copyright (C) 2015-2023 Miquel Sabaté Solà <mikisabate@gmail.com> + * Copyright (c) 2015-2023 Miquel Sabaté Solà <mikisabate@gmail.com> + * Copyright (C) 2015-2023 Miquel Sabaté Solà <mikisabate@gmail.com> + * Copyright (C) 2013-2023 Miquel Sabaté Solà <mikisabate@gmail.com> + * Copyright (C) 2014-2023 Miquel Sabaté Solà <mikisabate@gmail.com> + * Copyright (C) 2015-2023 Miquel Sabaté Solà <mikisabate@gmail.com> */ 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à <mikisabate@gmail.com> +# Copyright (C) 2014-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2016-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2016-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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 @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright (C) 2020-2022 Miquel Sabaté Solà <mikisabate@gmail.com> +# Copyright (C) 2020-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2017-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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 <<EOF; xspf_extractor version 0.1 -Copyright (C) 2017-2022 Miquel Sabaté Solà <mikisabate\@gmail.com> +Copyright (C) 2017-2023 Miquel Sabaté Solà <mikisabate\@gmail.com> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. 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à <mikisabate@gmail.com> +# Copyright (C) 2018-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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à <mikisabate@gmail.com> +# Copyright (C) 2020-2023 Miquel Sabaté Solà <mikisabate@gmail.com> # # 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 |
