diff options
author | Adam Spiers <stow@adamspiers.org> | 2015-11-09 11:36:11 +0000 |
---|---|---|
committer | Adam Spiers <stow@adamspiers.org> | 2015-11-09 12:36:51 +0000 |
commit | 43333b8ecafffdcd6345710b034fb26ea6898e05 (patch) | |
tree | ee91a33d4d5e88560299c01a7a43c54516a645a1 | |
parent | d82b6aa1a8677fb7140a9a6daa934f250859b947 (diff) | |
download | stow-43333b8ecafffdcd6345710b034fb26ea6898e05.tar.gz |
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)
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | MANIFEST | 1 | ||||
-rw-r--r-- | META.json | 3 | ||||
-rw-r--r-- | META.yml | 1 | ||||
-rw-r--r-- | Makefile.am | 7 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | lib/Stow/Util.pm.in (renamed from lib/Stow/Util.pm) | 1 |
7 files changed, 16 insertions, 2 deletions
@@ -24,6 +24,7 @@ configure /doc/stow.pdf /doc/stow.8 /lib/Stow.pm +/lib/Stow/Util.pm stamp-vti stow-[0-9].[0-9].[0-9].tar.* stow-[0-9].[0-9].[0-9]/ @@ -25,6 +25,7 @@ INSTALL lib/Stow.pm lib/Stow.pm.in lib/Stow/Util.pm +lib/Stow/Util.pm.in Makefile.am Makefile.in MANIFEST This list of files @@ -39,7 +39,8 @@ "version" : "v2.2.1" }, "Stow::Util" : { - "file" : "lib/Stow/Util.pm" + "file" : "lib/Stow/Util.pm", + "version" : "v2.2.1" } }, "release_status" : "stable", @@ -20,6 +20,7 @@ provides: version: v2.2.1 Stow::Util: file: lib/Stow/Util.pm + version: v2.2.1 requires: Carp: '0' IO::File: '0' diff --git a/Makefile.am b/Makefile.am index 2cea9a6..3303a6a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -75,7 +75,7 @@ $(TESTS_OUT): CPAN_FILES = MANIFEST MANIFEST.SKIP Build.PL META.yml META.json 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 \ $(TESTS) t/testutil.pm \ $(TEXINFO_TEX) \ @@ -140,6 +140,11 @@ lib/Stow.pm: lib/Stow.pm.in $(DEFAULT_IGNORE_LIST) Makefile @( $(edit) < $<; cat $(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. ############################################################################## @@ -1,5 +1,9 @@ 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 ** Small improvements to documentation diff --git a/lib/Stow/Util.pm b/lib/Stow/Util.pm.in index 2b5bbdb..b709e7e 100644 --- a/lib/Stow/Util.pm +++ b/lib/Stow/Util.pm.in @@ -26,6 +26,7 @@ our @EXPORT_OK = qw( ); our $ProgramName = 'stow'; +our $VERSION = '@VERSION@'; ############################################################################# # |