THROW AWAY this commit on rebase - dirty bootstrap
[dbsrgits/DBIx-Class.git] / Makefile.PL
index c3cebfa..f22f9ee 100644 (file)
@@ -5,6 +5,33 @@ use 5.008001;
 use inc::Module::Install 1.06;
 
 ##
+## TEMPORARY (and non-portable)
+## Get the dq stuff
+##
+`rm -rf t/dqlib`;
+`mkdir t/dqlib`;
+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 t/dqlib`;
+
+  `rm -rf $tdir`;
+}
+`cpanm SQL::ReservedWords 2>&1`;
+use lib 't/dqlib';
+
+
+##
 ## DO NOT USE THIS HACK IN YOUR DISTS!!! (it makes #toolchain sad)
 ##
 # get cpanX --installdeps . to behave in a checkout (most users do not expect