Skip to content

Instantly share code, notes, and snippets.

@msikma
Created October 4, 2015 20:26
Show Gist options
  • Save msikma/1fca8e3748cb3551a0f4 to your computer and use it in GitHub Desktop.
Save msikma/1fca8e3748cb3551a0f4 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Copyright (C) 2015, Michiel Sikma <[email protected]>
# MIT License
DEPS=(
'argparse::https://github.com/Cofyc/argparse.git::e1277bf1e3f47663fad54f84ca723db7688630d4'
'allegro5::https://github.com/liballeg/allegro5.git::4.4'
'xorshift::https://github.com/msikma/xorshift::e06c8e131c1b7bce0eea899a4235aba3ba53b6e5'
)
if [ ! -d "vendor" ]; then
echo "No vendor/ directory found. Run this script from the ceegee root dir."
exit 1
fi
for n in "${DEPS[@]}" ; do
dep="${n}"
bits=(${dep//::/ })
name=${bits[0]}
url=${bits[1]}
branch=${bits[2]}
cmd="git clone --depth 1 --branch $branch '$url' vendor/$name"
echo "$cmd"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment