aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2023-01-02 12:33:58 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2023-01-02 12:33:58 +0100
commiteab596b672b18c8db1103d99d7a9408a0fc9a09c (patch)
treeab0186d5e9e42608a47d823e9ce645be45b6f32f
parentafdedcc50168208c7f6da855d7dbce9a0ad0e8fa (diff)
downloaddotfiles-eab596b672b18c8db1103d99d7a9408a0fc9a09c.tar.gz
dotfiles-eab596b672b18c8db1103d99d7a9408a0fc9a09c.zip
Updated copyright notice
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
-rw-r--r--.irbrc2
-rw-r--r--README.md2
-rw-r--r--bin/db2
-rwxr-xr-xbin/e2
-rwxr-xr-xbin/emacsclient-a-nw2
-rwxr-xr-xbin/find-broken-symlinks2
-rwxr-xr-xbin/gen-self-signed2
-rwxr-xr-xbin/git-default2
-rwxr-xr-xbin/git-fork2
-rwxr-xr-xbin/git-nuke2
-rwxr-xr-xbin/git-who2
-rwxr-xr-xbin/i3status.sh2
-rwxr-xr-xbin/license28
-rwxr-xr-xbin/lock.sh2
-rw-r--r--bin/sass2
-rw-r--r--bin/test/README.md.expected2
-rw-r--r--bin/test/main.cpp.expected12
-rwxr-xr-xbin/test/test.sh2
-rwxr-xr-xbin/toggle-keyboard-layout.sh2
-rwxr-xr-xbin/vpnsetup2
-rwxr-xr-xbin/xo2
-rwxr-xr-xbin/xspf_extractor4
-rwxr-xr-xbin/zypper-purgerepos2
-rwxr-xr-xbin/zypper-rup2
-rwxr-xr-xinstall.sh2
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à <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/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à <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 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à <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/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à <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
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à <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 &copy; 2014-2022 Miquel Sabaté Solà, released under the MIT License.
+Copyright &copy; 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
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à <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
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à <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