-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
caa3397
commit c0c6a3b
Showing
6 changed files
with
109 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
rm -fr cpan | ||
mkdir cpan | ||
|
||
( | ||
set -x | ||
cp Changes cpan | ||
cp -r lib cpan | ||
cp -r test cpan/t | ||
rm -fr cpan/t/xt cpan/t/misc | ||
./.cpan/bin/make-dist-ini > cpan/dist.ini | ||
) | ||
|
||
for kwim in $(find doc -type f -name '*.kwim'); do | ||
pod="${kwim/doc/cpan/lib}" | ||
pod="${pod/.kwim/.pod}" | ||
if grep '^====' "$kwim" &> /dev/null; then | ||
( | ||
set -x | ||
kwim --to=pod --pod-cpan "$kwim" > "$pod" | ||
) | ||
else | ||
( | ||
set -x | ||
kwim --to=pod --complete --wrap "$kwim" > "$pod" | ||
) | ||
fi | ||
done | ||
|
||
# vim: set sw=2 lisp: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use YAML::XS; | ||
use Template::Toolkit::Simple; | ||
use Hash::Merge 'merge'; | ||
use IO::All; | ||
use XXX; | ||
|
||
my $meta = Load io->file('Meta')->all; | ||
my $cpan = delete($meta->{'=cpan'}) || {}; | ||
my $data = merge($cpan, $meta); | ||
|
||
print tt | ||
->path(['./.cpan']) | ||
->data($data) | ||
->render('dist.ini'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
name = Pegex | ||
author = Ingy döt Net <ingy@cpan.org> | ||
name = [% name %] | ||
author = [% author.name %] <[% author.email %]> | ||
license = Perl_5 | ||
copyright_holder = Ingy döt Net | ||
version = 0.25 | ||
copyright_holder = [% author.name %] | ||
version = [% version %] | ||
|
||
[@Basic] | ||
[PkgVersion] | ||
[ChangesFromYaml] | ||
[ReadmeFromPod] | ||
filename = lib/Pegex.pod | ||
filename = lib/[% name %].pod | ||
|
||
[@Git] | ||
[GithubMeta] | ||
user = ingydotnet | ||
user = [% author.github %] | ||
issues = 1 | ||
|
||
[Prereqs] | ||
perl = v5.8.1 | ||
[% FOR module = requires.keys -%] | ||
[% IF module == 'perl' -%] | ||
[% module %] = v[% requires.$module %] | ||
[% ELSE -%] | ||
[% module %] = [% requires.$module %] | ||
[% END -%] | ||
[% END -%] | ||
|
||
[TestMLIncluder] | ||
[PodSyntaxTests] | ||
[Prereqs / TestRequires] | ||
YAML::XS = 0 | ||
[% FOR module = test.requires.keys -%] | ||
[% module %] = [% test.requires.$module %] | ||
[% END -%] | ||
|
||
[PruneFiles] | ||
filename = dist.ini | ||
filename = ReadMe.md | ||
filename = note | ||
filename = t2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
cpan: | ||
./.cpan/bin/make_cpan | ||
.PHONY: cpan test | ||
|
||
release: cpan | ||
(cd cpan; dzil release) | ||
NAME := $(shell grep '^name: ' Meta | cut -d' ' -f2) | ||
VERSION := $(shell grep '^version: ' Meta | cut -d' ' -f2) | ||
|
||
test: | ||
prove -lv test | ||
|
||
cpan: | ||
./.cpan/bin/make-cpan | ||
|
||
test-cpan: cpan | ||
(cd cpan; dzil test) | ||
|
||
test: | ||
prove -lv test | ||
dist: cpan | ||
(cd cpan; dzil build) | ||
|
||
release: dist | ||
cpan-upload cpan/$(NAME)-$(VERSION).tar.gz | ||
git tag $(VERSION) | ||
git push --tag | ||
|
||
clean: | ||
clean purge: | ||
rm -fr cpan | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
- Delete | ||
=encoding | ||
=cut | ||
=over | ||
=back | ||
|
||
- Change title for module docs | ||
===== | ||
|
||
- Change =head* to = == | ||
- Change =item to - * | ||
|
||
- Change L<> B<> I<> C<> | ||
|
||
- Titlecase =head1 text | ||
|
||
- Two space indent code sections |