Permalink
Browse files

tweaked setup soem more

  • Loading branch information...
lsmith77 committed Nov 17, 2011
1 parent 571b241 commit 416464b31c471626a9b98f97988cd22b57fd42b4
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+git submodule update --init --recursive
+
+php $DIR/generate_doctrine_dbal_fixture.php
+
+php $DIR/vendor/vendors_doctrine_dbal.php
View
@@ -1,14 +1,7 @@
#!/bin/bash
-git submodule update --init --recursive
-wget http://s3-eu-west-1.amazonaws.com/patched-jackrabbit/jackrabbit-standalone-2.3.1-jackalope-SNAPSHOT.jar
-java -jar jackrabbit-standalone-2.3.1-jackalope-SNAPSHOT.jar&
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-echo "Waiting until Jackrabbit is ready on port 8080"
-while [[ -z `curl -s 'http://localhost:8080' ` ]]
-do
- echo -n "."
- sleep 2s
-done
+git submodule update --init --recursive
-echo "Jackrabbit is up"
+$DIR/vendor/vendors_jackrabbit.sh
@@ -0,0 +1,23 @@
+#!/usr/bin/env php
+<?php
+
+set_time_limit(0);
+
+$vendorDir = __DIR__;
+$deps = array(
+ array('doctrine-common', 'http://github.com/doctrine/common.git', 'origin/master'),
+ array('doctrine-dbal', 'http://github.com/doctrine/dbal.git', 'origin/master'),
+);
+
+foreach ($deps as $dep) {
+ list($name, $url, $rev) = $dep;
+
+ echo "> Installing/Updating $name\n";
+
+ $installDir = $vendorDir.'/'.$name;
+ if (!is_dir($installDir)) {
+ system(sprintf('git clone -q %s %s', escapeshellarg($url), escapeshellarg($installDir)));
+ }
+
+ system(sprintf('cd %s && git fetch -q origin && git reset --hard %s', escapeshellarg($installDir), escapeshellarg($rev)));
+}
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+cd $DIR
+
+JAR=jackrabbit-standalone-2.3.1-jackalope-SNAPSHOT.jar
+
+if [ ! -f "$DIR/$JAR" ]; then
+ wget http://s3-eu-west-1.amazonaws.com/patched-jackrabbit/$JAR
+fi
+
+java -jar $DIR/$JAR&
+
+echo "Waiting until Jackrabbit is ready on port 8080"
+while [[ -z `curl -s 'http://localhost:8080' ` ]]
+do
+ echo -n "."
+ sleep 2s
+done
+
+echo "Jackrabbit is up"

0 comments on commit 416464b

Please sign in to comment.