Skip to content

Commit

Permalink
Bump copyright date
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Jan 2, 2023
1 parent 6da86fc commit 4a4c0c6
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# brian's standard GitHub Actions Ubuntu config for Perl 5 modules
# version 20220828.001
# version 20220902.001
# https://github.com/briandfoy/github_workflows
# https://github.com/features/actions
# This file is licensed under the Artistic License 2.0
Expand All @@ -10,6 +10,7 @@ on:
branches:
- '**'
- '!**appveyor**'
- '!**circleci**'
- '!**macos**'
- '!**notest**'
- '!**release**'
Expand All @@ -21,6 +22,7 @@ on:
# list all the files which are irrelevant to the tests
# non-code, support files, docs, etc
- '.appveyor.yml'
- '.circleci'
- '.gitattributes'
- '.github/workflows/macos.yml'
- '.github/workflows/release.yml'
Expand Down Expand Up @@ -55,7 +57,7 @@ jobs:
container:
image: perl:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Platform check
run: uname -a
- name: Perl version check
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# brian's standard GitHub Actions macOS config for Perl 5 modules
# version 20220828.001
# version 20220902.001
# https://github.com/briandfoy/github_workflows
# https://github.com/features/actions
# This file is licensed under the Artistic License 2.0
Expand All @@ -10,6 +10,7 @@ on:
branches:
- '**'
- '!**appveyor**'
- '!**circleci**'
- '!**linux**'
- '!**notest**'
- '!**release**'
Expand All @@ -21,6 +22,7 @@ on:
# list all the files which are irrelevant to the tests
# non-code, support files, docs, etc
- '.appveyor.yml'
- '.circleci'
- '.gitattributes'
- '.github/workflows/linux.yml'
- '.github/workflows/release.yml'
Expand All @@ -36,7 +38,7 @@ jobs:
perl:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Platform check
run: uname -a
- name: Set up Perl
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# brian's standard GitHub Actions release config for Perl 5 modules
# version 20220827.001
# version 20220827.002
# https://github.com/briandfoy/github_workflows
# https://github.com/features/actions
# This file is licensed under the Artistic License 2.0
Expand All @@ -21,7 +21,7 @@ jobs:
container:
image: perl:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# Some older versions of Perl have trouble with hostnames in certs. I
# haven't figured out why.
- name: Setup environment
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# brian's standard GitHub Actions Windows config for Perl 5 modules
# version 20220828.001
# version 20220902.001
# https://github.com/briandfoy/github_workflows
# https://github.com/features/actions
# This file is licensed under the Artistic License 2.0
Expand All @@ -10,6 +10,7 @@ on:
branches:
- '**'
- '!**appveyor**'
- '!**circleci**'
- '!**linux**'
- '!**macos**'
- '!**notest**'
Expand All @@ -21,6 +22,7 @@ on:
# list all the files which are irrelevant to the tests
# non-code, support files, docs, etc
- '.appveyor.yml'
- '.circleci'
- '.gitattributes'
- '.github/workflows/linux.yml'
- '.github/workflows/macos.yml'
Expand All @@ -42,7 +44,7 @@ jobs:
- windows-2019
- windows-2022
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Perl
run: |
choco install strawberryperl
Expand Down
111 changes: 111 additions & 0 deletions Makefile.PL.old
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
package WordPress::Backups;
use strict;
use warnings;

=encoding utf8

=head1 The build file for WordPress::Backups

This build file is a modulino; it works as both a build script and
a module.

To build the distribution, run this file normally:

% perl Makefile.PL

But, it's more interesting than that. You can load it with C<require>
and call C<arguments> to get the data structure it passes to
C<WriteMakefile>:

my $package = require '/path/to/Makefile.PL';
my $arguments = $package->arguments;

Note that C<require>-ing a file makes an entry in C<%INC> for exactly
that name. If you try to C<require> another file with the same name,
even from a different path, C<require> thinks it has already loaded
the file. As such, I recommend you always require the full path to the
file.

The return value of the C<require> is a package name (in this case,
the name of the main module. Use that to call the C<arguments> method.

Even if this distribution needs a higher version of Perl, this bit
only needs v5.8. You can play with the data structure with a primitive
Perl.

=cut

use File::Spec::Functions qw(catfile);

my $module = __PACKAGE__;
( my $dist = $module ) =~ s/::/-/g;

my $github = 'https://github.com/briandfoy/wordpress-backups';
my $main_file = catfile( 'lib', split /::/, "$module.pm" );

my %WriteMakefile = (
'MIN_PERL_VERSION' => '5.014',

'NAME' => $module,
'ABSTRACT_FROM' => $main_file,
'VERSION_FROM' => $main_file,
'LICENSE' => 'artistic_2',
'AUTHOR' => 'brian d foy <bdfoy@cpan.org>',

'CONFIGURE_REQUIRES' => {
'ExtUtils::MakeMaker' => '6.64',
'File::Spec::Functions' => '0',
},

'BUILD_REQUIRES' => {
},

'TEST_REQUIRES' => {
'Test::More' => '1',
},

'PREREQ_PM' => {
'File::Spec::Functions' => '0',
},

'META_MERGE' => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => "$github.git",
web => $github,
},
bugtracker => {
web => "$github/issues",
},
homepage => $github,
},
},

clean => { FILES => "$dist-*" },
);

sub arguments { \%WriteMakefile }

do_it() unless caller;
sub do_it {
require File::Spec;
my $MM ='ExtUtils::MakeMaker';
my $MM_version =
eval{ "$MM " . $WriteMakefile{'CONFIGURE_REQUIRES'}{'ExtUtils::MakeMaker'} }
||
"$MM 6.64";
eval "use $MM_version; 1" or die "Could not load $MM_version: $@";
eval "use Test::Manifest 1.21"
if -e File::Spec->catfile( qw(t test_manifest) );

my $arguments = arguments();
my $minimum_perl = $arguments->{MIN_PERL_VERSION} || '5.008';
eval "require $minimum_perl;" or die $@;

WriteMakefile( %$arguments );
}

no warnings;
__PACKAGE__;

0 comments on commit 4a4c0c6

Please sign in to comment.