Actually this is pretty much working around the way dzil seems to be
designed; all we wanted was a working Makefile.PL.
---
really, Dist::Zilla should be able to apply templating like that
during the 'make' phase of the build, ie when .pm files are copied
to blib/; this would make working with building from source
directories easier.
scripts/make-all.sh | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/scripts/make-all.sh b/scripts/make-all.sh
index 5cf8dc5..29f3c52 100755
--- a/scripts/make-all.sh
+++ b/scripts/make-all.sh
@@ -13,6 +13,15 @@ git ls-files -c -m |
[ -d $x/.git ] && (
echo "Entering directory $x"
cd $x
+ if [ -f dist.ini -a ! -f Makefile.PL ]
+ then
+ # we just want to make the current
+ # working directory have a working
+ # Makefile.PL!
+ dzil build
+ (cd $x-*; cp -a * ..)
+ rm -rf $x-*
+ fi
[ -f Makefile ] || perl Makefile.PL
make
cp -r blib/* ../blib
--
1.5.6