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 similarity index 99% rename from lib/Stow/Util.pm rename to 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@'; ############################################################################# #