note
pryrt
In [mod://Win32::Mechanize::NotepadPlusPlus], I added a rule in [https://github.com/pryrt/Win32-Mechanize-NotepadPlusPlus/blob/master/Makefile.PL#L133-L137|my Makefile.PL postamble], so that <C>make populateversion</C> will take the VERSION that the Makefile sees (which it grabs from the "primary" module in the dist, thanks to <C>$mm_args{VERSION_FROM}</C> ), and uses perl to do an in-place edit of the <C>our $VERSION =...</C> from the related modules. <P>
<c>
# auto-populate the VERSION in the submodules from $(VERSION), which comes from main module
populateversion :: lib/Win32/Mechanize/NotepadPlusPlus.pm
$(NOECHO) $(ECHO) want to auto-populate VERSION in all sub-modules: $(VERSION)
$(PERL) -pi -e "s/^(\s*our\s+.VERSION\s*=).*?;.*?$$/\1 '$(VERSION)'; # auto-populated from W::M::NPP/" lib/Win32/Mechanize/NotepadPlusPlus/Notepad.pm lib/Win32/Mechanize/NotepadPlusPlus/Editor.pm
</c><P>
So I just have to change the version in one master location, and then <C>make populateversion</C> (or, since I have other rules that depend on that rule, run one of those other rules for doing other documentation updates) to get the version in sync across the modules.<!-- Wiki2Monks {"version":1.16} -->
11114663
11114667