Instead of requiring the user to build each of the subprojects in turn, run 'make' in all of them, then collect the blib/ directories at the end. --- scripts/make-all.sh | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100755 scripts/make-all.sh
diff --git a/scripts/make-all.sh b/scripts/make-all.sh new file mode 100755 index 0000000..5cf8dc5 --- /dev/null +++ b/scripts/make-all.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# make-all.sh: go into all of the submodules which are a part of the +# index, build them, and put the resultant files in blib/ +# for use with perl -Mblib + +[ -d blib ] && rm -rf blib +mkdir -p blib/lib blib/arch + +git ls-files -c -m | + while read x + do + [ -d $x/.git ] && ( + echo "Entering directory $x" + cd $x + [ -f Makefile ] || perl Makefile.PL + make + cp -r blib/* ../blib + ) + done + -- 1.5.6