#!/bin/bash

# solution plucked from http://stackoverflow.com/questions/59895
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
  DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

git clone http://luajit.org/git/luajit-2.0.git "$DIR/luajit"
git clone https://github.com/letoram/openal.git "$DIR/openal"
git clone https://github.com/libuvc/libuvc.git "$DIR/libuvc"
