From: Matt S Trout Date: Thu, 28 Nov 2013 20:44:31 +0000 (+0000) Subject: only rebuild the bundle on the author side X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c0eaf90f53f8b348ad5a4273d7f2438fa9da9e23;p=dbsrgits%2FDBIx-Class.git only rebuild the bundle on the author side --- diff --git a/Makefile.PL b/Makefile.PL index e06b2a3..896b335 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -8,26 +8,28 @@ use inc::Module::Install 1.06; ## TEMPORARY (and non-portable) ## Get the dq stuff ## -`rm -rf lib/DBIx/Class/Bundled`; -`mkdir lib/DBIx/Class/Bundled`; -for ( - [ 'Data-Query' => 'master' ], - [ 'SQL-Abstract' => 'dq' ], -) { - my $tdir = '/tmp/dqlib_tmp_clone'; - - `rm -rf $tdir`; - - `GIT_SSH=maint/careless_ssh.bash git clone --quiet git://git.shadowcat.co.uk/dbsrgits/$_->[0] $tdir`; - printf "\nIncluding %s git rev %s\n", - $_->[0], - scalar `GIT_DIR=$tdir/.git git rev-parse origin/$_->[1]`, - ; - `git archive --format=tar --remote=file://$tdir origin/$_->[1] lib/ | tar --strip-components=1 -xC lib/DBIx/Class/Bundled`; - - `rm -rf $tdir`; +if ($Module::Install::AUTHOR) { + `rm -rf lib/DBIx/Class/Bundled`; + `mkdir lib/DBIx/Class/Bundled`; + for ( + [ 'Data-Query' => 'master' ], + [ 'SQL-Abstract' => 'dq' ], + ) { + my $tdir = '/tmp/dqlib_tmp_clone'; + + `rm -rf $tdir`; + + `GIT_SSH=maint/careless_ssh.bash git clone --quiet git://git.shadowcat.co.uk/dbsrgits/$_->[0] $tdir`; + printf "\nIncluding %s git rev %s\n", + $_->[0], + scalar `GIT_DIR=$tdir/.git git rev-parse origin/$_->[1]`, + ; + `git archive --format=tar --remote=file://$tdir origin/$_->[1] lib/ | tar --strip-components=1 -xC lib/DBIx/Class/Bundled`; + + `rm -rf $tdir`; + } + `cpanm SQL::ReservedWords 2>&1`; } -`cpanm SQL::ReservedWords 2>&1`; use lib 'lib/DBIx/Class/Bundled';