summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Spiers <stow@adamspiers.org>2015-11-09 11:36:11 +0000
committerAdam Spiers <stow@adamspiers.org>2015-11-09 12:36:51 +0000
commit43333b8ecafffdcd6345710b034fb26ea6898e05 (patch)
treeee91a33d4d5e88560299c01a7a43c54516a645a1
parentd82b6aa1a8677fb7140a9a6daa934f250859b947 (diff)
downloadstow-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--.gitignore1
-rw-r--r--MANIFEST1
-rw-r--r--META.json3
-rw-r--r--META.yml1
-rw-r--r--Makefile.am7
-rw-r--r--NEWS4
-rw-r--r--lib/Stow/Util.pm.in (renamed from lib/Stow/Util.pm)1
7 files changed, 16 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 6e48e79..eb004eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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]/
diff --git a/MANIFEST b/MANIFEST
index 2c9ed06..93becf6 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -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
diff --git a/META.json b/META.json
index e794404..19b928a 100644
--- a/META.json
+++ b/META.json
@@ -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",
diff --git a/META.yml b/META.yml
index da051c4..721ff1c 100644
--- a/META.yml
+++ b/META.yml
@@ -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.
##############################################################################
diff --git a/NEWS b/NEWS
index ae9a790..32ec5f8 100644
--- a/NEWS
+++ b/NEWS
@@ -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@';
#############################################################################
#