Skip to content

Commit da086d4

Browse files
switch version management to [@git::VersionManager]
This has been tested in a side branch with [FakeRelease].
1 parent 437e551 commit da086d4

File tree

1 file changed

+13
-24
lines changed

1 file changed

+13
-24
lines changed

dist.ini

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ main_module = lib/URI.pm
55
copyright_holder = Gisle Aas
66
copyright_year = 1998
77

8-
[VersionFromMainModule]
8+
; for version management, see the end of this file
99

1010
; Gather stuff in
1111
[Git::GatherDir]
@@ -170,35 +170,24 @@ remote_branch = master
170170

171171
;;; post-release actions
172172

173-
[CopyFilesFromRelease]
174-
filename = LICENSE
175-
176-
[NextRelease]
177-
format = %-9v %{yyyy-MM-dd}d
178-
179173
[ReadmeAnyFromPod / Markdown_Readme]
180174
source_filename = lib/URI.pm
181175
type = markdown
182176
filename = README.md
183177
location = root
184178
phase = release
185179

186-
[Git::Commit / release snapshot]
187-
allow_dirty = Changes
188-
allow_dirty = LICENSE
189-
allow_dirty = README.md
190-
commit_msg = %N-%v%t%n%n%c
191-
192-
[Git::Tag]
193-
194-
[BumpVersionAfterRelease]
195-
:version = 0.016
196-
all_matching = 1
197-
198-
[Git::Commit / post-release commit]
199-
allow_dirty_match = ^lib/.*\.pm$
200-
commit_msg = increment $VERSION after %v release
201-
202-
[Git::Push]
180+
; the distribution version is read from lib/URI.pm's $VERSION.
181+
; at release, all matching versions are bumped.
182+
; To change the release version, update *every* .pm file's
183+
; $VERSION. You can do this easily with this oneliner (e.g. for 1.70 -> 2.00):
184+
; perl -p -i -e's/.VERSION = .\K1.70/2.00/;' `find lib -type f`
185+
; (and don't forget to add $VERSION = eval $VERSION; for underscore releases!)
186+
[@Git::VersionManager]
187+
:version = 0.003
188+
bump_only_matching_versions = 1
189+
commit_files_after_release = LICENSE
190+
commit_files_after_release = README.md
191+
release snapshot.commit_msg = %N-%v%t%n%n%c
203192

204193
[ConfirmRelease]

0 commit comments

Comments
 (0)