add Stow/Util.pm.in with @VERSION@ substitution

This is now necessary in order to prevent pause.perl.org from
complaining:

    Status: Decreasing version number
    =================================

         module : Stow::Util
         version: undef
         in file: lib/Stow/Util.pm
         status : Not indexed because lib/Stow/Util.pm in
                 A/AS/ASPIERS/Stow-v2.2.0.tar.gz has a higher version number
                 (0)
This commit is contained in:
Adam Spiers 2015-11-09 11:36:11 +00:00
parent d82b6aa1a8
commit 43333b8eca
7 changed files with 16 additions and 2 deletions

1
.gitignore vendored
View file

@ -24,6 +24,7 @@ configure
/doc/stow.pdf /doc/stow.pdf
/doc/stow.8 /doc/stow.8
/lib/Stow.pm /lib/Stow.pm
/lib/Stow/Util.pm
stamp-vti stamp-vti
stow-[0-9].[0-9].[0-9].tar.* stow-[0-9].[0-9].[0-9].tar.*
stow-[0-9].[0-9].[0-9]/ stow-[0-9].[0-9].[0-9]/

View file

@ -25,6 +25,7 @@ INSTALL
lib/Stow.pm lib/Stow.pm
lib/Stow.pm.in lib/Stow.pm.in
lib/Stow/Util.pm lib/Stow/Util.pm
lib/Stow/Util.pm.in
Makefile.am Makefile.am
Makefile.in Makefile.in
MANIFEST This list of files MANIFEST This list of files

View file

@ -39,7 +39,8 @@
"version" : "v2.2.1" "version" : "v2.2.1"
}, },
"Stow::Util" : { "Stow::Util" : {
"file" : "lib/Stow/Util.pm" "file" : "lib/Stow/Util.pm",
"version" : "v2.2.1"
} }
}, },
"release_status" : "stable", "release_status" : "stable",

View file

@ -20,6 +20,7 @@ provides:
version: v2.2.1 version: v2.2.1
Stow::Util: Stow::Util:
file: lib/Stow/Util.pm file: lib/Stow/Util.pm
version: v2.2.1
requires: requires:
Carp: '0' Carp: '0'
IO::File: '0' IO::File: '0'

View file

@ -75,7 +75,7 @@ $(TESTS_OUT):
CPAN_FILES = MANIFEST MANIFEST.SKIP Build.PL META.yml META.json CPAN_FILES = MANIFEST MANIFEST.SKIP Build.PL META.yml META.json
EXTRA_DIST = \ EXTRA_DIST = \
bin/stow.in bin/chkstow.in lib/Stow.pm.in \ bin/stow.in bin/chkstow.in lib/Stow.pm.in lib/Stow/Util.pm.in \
doc/manual-split \ doc/manual-split \
$(TESTS) t/testutil.pm \ $(TESTS) t/testutil.pm \
$(TEXINFO_TEX) \ $(TEXINFO_TEX) \
@ -140,6 +140,11 @@ lib/Stow.pm: lib/Stow.pm.in $(DEFAULT_IGNORE_LIST) Makefile
@( $(edit) < $<; cat $(DEFAULT_IGNORE_LIST) ) > $@ @( $(edit) < $<; cat $(DEFAULT_IGNORE_LIST) ) > $@
@echo "Generated $@ from $< and $(DEFAULT_IGNORE_LIST)" @echo "Generated $@ from $< and $(DEFAULT_IGNORE_LIST)"
lib/Stow/Util.pm: lib/Stow/Util.pm.in Makefile.am
@[ -d lib/Stow ] || mkdir -p lib/Stow # required in vpath mode
@$(edit) < $< > $@
@echo "Generated $@ from $<"
############################################################################## ##############################################################################
# The below rules should only be needed by developers. # The below rules should only be needed by developers.
############################################################################## ##############################################################################

4
NEWS
View file

@ -1,5 +1,9 @@
News file for Stow. News file for Stow.
* Changes in version 2.2.2
** @VERSION@ substitution was set up for the Stow::Util module.
* Changes in version 2.2.1 * Changes in version 2.2.1
** Small improvements to documentation ** Small improvements to documentation

View file

@ -26,6 +26,7 @@ our @EXPORT_OK = qw(
); );
our $ProgramName = 'stow'; our $ProgramName = 'stow';
our $VERSION = '@VERSION@';
############################################################################# #############################################################################
# #