Skip to content

Commit

Permalink
Version++ (Small QoL changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtoobii committed Jan 21, 2021
1 parent 0d05e26 commit df27e5d
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1
28 changes: 28 additions & 0 deletions dist.sh
Original file line number Diff line number Diff line change
@@ -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



4 changes: 4 additions & 0 deletions lib/Wireguard/WGmeta.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ I<wgXX.conf> file (Metadata is prefixed with I<#+>):
S<Tobias Bossert E<lt>tobib at cpan.orgE<gt>>
=head1 THANKS TO
L<OETIKER+PARTNER AG|https://www.oetiker.ch/> for sponsoring this project.
=head1 COPYRIGHT AND LICENSE
MIT License
Expand Down
2 changes: 1 addition & 1 deletion lib/Wireguard/WGmeta/Cli/Human.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df27e5d

Please sign in to comment.