Skip to content

Commit

Permalink
Merge tag 'release-1.01' into develop
Browse files Browse the repository at this point in the history
release 1.01.

- Released at 2024-11-18T20:46:04+0900
- fix: `perlbrew install skaji-relocatable-perl-$version` on macOS.
  • Loading branch information
gugod committed Nov 18, 2024
2 parents 225861f + e8f48c3 commit 2b01e94
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
3 changes: 2 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NEXT
1.01
- Released at 2024-11-18T20:46:04+0900
- fix: `perlbrew install skaji-relocatable-perl-$version` on macOS.

1.00
Expand Down
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
"App::perlbrew" : {
"file" : "lib/App/perlbrew.pm",
"version" : "1.00"
"version" : "1.01"
}
},
"release_status" : "stable",
Expand All @@ -86,7 +86,7 @@
"web" : "https://github.com/gugod/App-perlbrew"
}
},
"version" : "1.00",
"version" : "1.01",
"x_serialization_backend" : "JSON::PP version 4.16",
"x_spdx_expression" : "MIT",
"x_static_install" : "1"
Expand Down
4 changes: 2 additions & 2 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ provides:
file: lib/App/Perlbrew/Util.pm
App::perlbrew:
file: lib/App/perlbrew.pm
version: '1.00'
version: '1.01'
requires:
CPAN::Perl::Releases: '5.20240920'
Capture::Tiny: '0.48'
Expand All @@ -48,7 +48,7 @@ requires:
resources:
bugtracker: https://github.com/gugod/App-perlbrew/issues
repository: https://github.com/gugod/App-perlbrew.git
version: '1.00'
version: '1.01'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
x_spdx_expression: MIT
x_static_install: '1'
12 changes: 7 additions & 5 deletions dev-bin/release.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
#!/bin/bash
#!/usr/bin/zsh

# Make sure we are at the right directory.
cd $(dirname $0)/..

git clean -xdf

CURRENT_VERSION=$(egrep 'our \$VERSION = "[\.0-9]+";' lib/App/perlbrew.pm | egrep -o '[0-9]+' | tail -1)
RELEASE_VERSION=1.$((CURRENT_VERSION+1))
CURRENT_VERSION=$(grep -E 'our \$VERSION = "[\.0-9]+";' lib/App/perlbrew.pm | grep -Eo '[\.0-9]+' | tail -1)
RELEASE_VERSION=$((CURRENT_VERSION + 0.01))

RELEASE_TIMESTAMP=$(date +'%FT%T%z')
RELEASE_THANKS=$(git shortlog -s "$(git tag --list release-'*' | tail -1)"..HEAD | grep -v "$(git config user.name)" | perl -nE 'push@a,(split /[\t\n]/)[1]}{say join(", ",@a)')

echo '# $VERSION++'
echo '#' $CURRENT_VERSION '->' $RELEASE_VERSION

(
cat lib/App/perlbrew.pm | sed 's/our $VERSION = "0.'${CURRENT_VERSION}'";/our $VERSION = "'${RELEASE_VERSION}'";/'
cat lib/App/perlbrew.pm | sed 's/our $VERSION = "'${CURRENT_VERSION}'";/our $VERSION = "'${RELEASE_VERSION}'";/'
) > lib/App/perlbrew.pm.new
mv lib/App/perlbrew.pm.new lib/App/perlbrew.pm

Expand Down
2 changes: 1 addition & 1 deletion lib/App/perlbrew.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package App::perlbrew;
use strict;
use warnings;
use 5.008;
our $VERSION = "1.00";
our $VERSION = "1.01";
use Config qw( %Config );

BEGIN {
Expand Down
2 changes: 1 addition & 1 deletion perlbrew
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ $fatpacked{"App/perlbrew.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'AP
use strict;
use warnings;
use 5.008;
our $VERSION = "1.00";
our $VERSION = "1.01";
use Config qw( %Config );
BEGIN {
Expand Down

0 comments on commit 2b01e94

Please sign in to comment.