From df27e5d0c784b6eb6bac975bc4424a44d84b67ba Mon Sep 17 00:00:00 2001 From: Tobias Bossert Date: Thu, 21 Jan 2021 13:13:14 +0100 Subject: [PATCH] Version++ (Small QoL changes) --- CHANGES | 3 +++ MANIFEST | 1 + Makefile.PL | 12 ++++++++++++ VERSION | 2 +- dist.sh | 28 ++++++++++++++++++++++++++++ lib/Wireguard/WGmeta.pm | 4 ++++ lib/Wireguard/WGmeta/Cli/Human.pm | 2 +- 7 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 dist.sh diff --git a/CHANGES b/CHANGES index baf12d1..71939bc 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +0.1.1 2021-01-21 Tobias Bossert (tobib at cpan.org) +- Small QoL-changes (dist) + 0.1.0 2021-01-21 Tobias Bossert (tobib at cpan.org) - added: more doc - fix: set min version everywhere to v5.20 diff --git a/MANIFEST b/MANIFEST index e07e31a..bd7af97 100644 --- a/MANIFEST +++ b/MANIFEST @@ -2,6 +2,7 @@ AUTHORS bin/wg-meta CHANGES COPYRIGHT +dist.sh lib/Wireguard/WGmeta.pm lib/Wireguard/WGmeta/Cli/Commands/Add.pm lib/Wireguard/WGmeta/Cli/Commands/Apply.pm diff --git a/Makefile.PL b/Makefile.PL index 4bca2f3..dbfe203 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -44,6 +44,18 @@ sub MY::postamble { bin/wg-meta lib/Wireguard/WGmeta/Wrapper/Config.pm lib/Wireguard/WGmeta/Wrapper/Show.pm: VERSION \$(PERL) -i -p -e 's/\$VERSION\\s*=\\s*"[\\d|\.]*[A-z]*"/\$VERSION = "\$(VERSION)"/;' \$\@ +ifeq (\$(EDITOR),) +EDITOR=/usr/bin/vi +endif + +CHANGES: VERSION + echo $self->{VERSION} `date +"%Y-%m-%d %H:%M:%S %z"` `git config user.name` '<'`git config user.email`'>' >> CHANGES.new + \@echo >> CHANGES.new + \@echo ' -' >> CHANGES.new + \@echo >> CHANGES.new + \@cat CHANGES >> CHANGES.new && mv CHANGES.new CHANGES + \$(EDITOR) CHANGES + EOF } diff --git a/VERSION b/VERSION index 6c6aa7c..6da28dd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 \ No newline at end of file +0.1.1 \ No newline at end of file diff --git a/dist.sh b/dist.sh new file mode 100644 index 0000000..a91b690 --- /dev/null +++ b/dist.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +VERSION=`cat VERSION` + +perl Makefile.PL +make test + +# test if version is updated everywhere +if ! grep -q $VERSION bin/wg-meta; then + echo "ERROR: Version in bin/wg-meta is not updated" + exit +fi +if ! grep -q $VERSION lib/Wireguard/WGmeta/Wrapper/Config.pm; then + echo "ERROR: Version in Config.pm is not updated" + exit +fi +if ! grep -q $VERSION lib/Wireguard/WGmeta/Wrapper/Show.pm; then + echo "ERROR: Version in Show.pm is not updated" + exit +fi + +make CHANGES +make dist +cd .debian +make deb + + + diff --git a/lib/Wireguard/WGmeta.pm b/lib/Wireguard/WGmeta.pm index bce3d4a..9ff0bb1 100644 --- a/lib/Wireguard/WGmeta.pm +++ b/lib/Wireguard/WGmeta.pm @@ -28,6 +28,10 @@ I file (Metadata is prefixed with I<#+>): Stobib at cpan.orgE> +=head1 THANKS TO + +L for sponsoring this project. + =head1 COPYRIGHT AND LICENSE MIT License diff --git a/lib/Wireguard/WGmeta/Cli/Human.pm b/lib/Wireguard/WGmeta/Cli/Human.pm index a94e526..ebdb742 100644 --- a/lib/Wireguard/WGmeta/Cli/Human.pm +++ b/lib/Wireguard/WGmeta/Cli/Human.pm @@ -2,7 +2,7 @@ =head1 NAME -A small collection of utility functions to convert machine-readable out to human friendly +Cli::Human - A collection of utility functions to make things more human friendly =head1 METHODS