Skip to content

Commit

Permalink
0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Jun 14, 2014
1 parent 5bb5d11 commit 544442b
Show file tree
Hide file tree
Showing 16 changed files with 85 additions and 27 deletions.
6 changes: 6 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---
version: 0.11
date: Sat Jun 14 09:48:46 PDT 2014
changes:
- Pod fix
- Add travis badges
---
version: 0.10
date: Fri May 23 18:37:50 PDT 2014
changes:
Expand Down
101 changes: 75 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
# > make upgrade
#

.PHONY: cpan doc test
.PHONY: cpan test

NAME := $(shell grep '^name: ' Meta 2>/dev/null | cut -d' ' -f2)
VERSION := $(shell grep '^version: ' Meta 2>/dev/null | cut -d' ' -f2)
ifeq (,$(shell which zild))
$(error "Error: 'zild' command not found. Please install Zilla::Dist from CPAN")
endif

NAME := $(shell zild meta name)
VERSION := $(shell zild meta version)
DISTDIR := $(NAME)-$(VERSION)
DIST := $(DISTDIR).tar.gz
NAMEPATH := $(subst -,/,$(NAME))
Expand All @@ -19,19 +23,27 @@ help:
@echo ''
@echo 'Makefile targets:'
@echo ''
@echo ' make test - Run the repo tests'
@echo ' make install - Install the repo'
@echo ' make doc - Make the docs'
@echo ' make test - Run the repo tests'
@echo ' make install - Install the repo'
@echo ' make update - Update generated files'
@echo ''
@echo ' make cpan - Make cpan/ dir with dist.ini'
@echo ' make cpanshell - Open new shell into new cpan/'
@echo ' make cpantest - Make cpan/ dir and run tests in it'
@echo ''
@echo ' make dist - Make CPAN distribution tarball'
@echo ' make distdir - Make CPAN distribution directory'
@echo ' make distshell - Open new shell into new distdir'
@echo ' make disttest - Run the dist tests'
@echo ''
@echo ' make cpan - Make cpan/ dir with dist.ini'
@echo ' make dist - Make CPAN distribution tarball'
@echo ' make distdir - Make CPAN distribution directory'
@echo ' make disttest - Run the dist tests'
@echo ' make publish - Publish the dist to CPAN'
@echo ' make publish-dryrun - Don'"'"'t actually push to CPAN'
@echo ' make publish - Publish the dist to CPAN'
@echo ' make preflight - Dryrun of publish'
@echo ''
@echo ' make upgrade - Upgrade the build system'
@echo ' make clean - Clean up build files'
@echo ' make readme - Make the ReadMe.pod file'
@echo ' make travis - Make a travis.yml file'
@echo ' make upgrade - Upgrade the build system'
@echo ''
@echo ' make clean - Clean up build files'
@echo ''

test:
Expand All @@ -41,12 +53,18 @@ install: distdir
(cd $(DISTDIR); perl Makefile.PL; make install)
make clean

doc:
kwim --pod-cpan doc/$(NAMEPATH).kwim > ReadMe.pod
update: makefile readme travis

cpan:
zild-make-cpan

cpanshell: cpan
(cd cpan; $$SHELL)
make clean

cpantest: cpan
(cd cpan; prove -lv t) && make clean

dist: clean cpan
(cd cpan; dzil build)
mv cpan/$(DIST) .
Expand All @@ -58,27 +76,58 @@ distdir: clean cpan
tar xzf $(DIST)
rm -fr cpan $(DIST)

distshell: distdir
(cd $(DISTDIR); $$SHELL)
make clean

disttest: cpan
(cd cpan; dzil test) && rm -fr cpan
(cd cpan; dzil test) && make clean

publish: check-release dist
publish release: update test check-release disttest
make dist
cpan-upload $(DIST)
git push
git tag $(VERSION)
git push --tag
rm $(DIST)
make clean
git status

preflight: update test check-release disttest
make dist
@echo cpan-upload $(DIST)
@echo git push
@echo git tag $(VERSION)
@echo git push --tag
make clean
git status

publish-dryrun: check-release dist
echo cpan-upload $(DIST)
echo git tag $(VERSION)
echo git push --tag
rm $(DIST)
readme:
kwim --pod-cpan doc/$(NAMEPATH).kwim > ReadMe.pod

clean purge:
rm -fr cpan .build $(DIST) $(DISTDIR)
travis:
zild-make-travis

upgrade:
cp `zild sharedir`/Makefile ./

clean purge:
rm -fr cpan .build $(DIST) $(DISTDIR)

#------------------------------------------------------------------------------
check-release:
zild-check-release

ifeq (Zilla-Dist,$(NAME))
makefile:
@echo Skip 'make upgrade'
else
makefile:
cp Makefile /tmp/
make upgrade
@if [ -n "`diff Makefile /tmp/Makefile`" ]; then \
echo "Makefile updated. Try again"; \
exit 1; \
fi
rm /tmp/Makefile
endif

2 changes: 1 addition & 1 deletion Meta
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=meta: 0.0.1

name: File-Share
version: 0.10
version: 0.11
abstract: Extend File::ShareDir to Local Libraries

license: perl
Expand Down
3 changes: 3 additions & 0 deletions doc/File/Share.kwim
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ File::Share

Extend File::ShareDir to Local Libraries

<badge-travis ingydotnet/file-share-pm>

<badge-coveralls ingydotnet/file-share-pm>

= Synopsis

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 544442b

Please sign in to comment.