New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMpre and PMpost properties for uniform and versioned perl module headers #62

Merged
merged 1 commit into from Jan 11, 2016
File filter...
Filter file types
Jump to file or symbol
Failed to load files and symbols.
+29 −0
Diff settings

Always

Just for now

Copy path View file
@@ -22,6 +22,35 @@
<man.page.dir>/usr/share/man</man.page.dir>
<prove.args>-q</prove.args>
<unittest />
<!-- perl module headers.
Usage: at the beginning of the module put:
#${PMpre} Some::Namespace::packagename${PMpost}
The space after the ${PMpre} is mandatory, due to maven space eating properties
TODO: http://stackoverflow.com/questions/7389995/how-do-i-preserve-whitespace-in-a-maven-plugin-configuration
TODO: Should add up to 20 lines of text for fixed offset? -> move to the QuattorBuild.java
-->
<PMpre>${line.separator}
${license-info}
${developer-info}
${author-info}

package
</PMpre>
<!-- version numbers should be boring: http://www.dagolden.com/index.php/369/version-numbers-should-be-boring/
always use 'use version;' and a version instance for pre 5.10 support
you can now refer to these modules with vstrings: 'use X::Y::Z v1.2.3;'
-->
<PMpost>;

use strict;
use warnings;

use version;
our $VERSION = version->new("v${no-snapshot-version}");
${line.separator}
</PMpost>

</properties>
<dependencies>
<dependency>
ProTip! Use n and p to navigate between commits in a pull request.