Created
July 15, 2015 20:17
-
-
Save stresler/fe886316b970d02f3cf0 to your computer and use it in GitHub Desktop.
CoreOS SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: mksdk [directory]" | |
exit | |
fi | |
DIR=$(pwd)/$1 | |
if [ -d "$DIR" ]; then | |
echo "$DIR exists, please choose a new directory for your sdk." | |
exit 1 | |
fi | |
mkdir $DIR | |
cd $DIR | |
repo init -u https://github.com/coreos/manifest.git | |
repo sync | |
curl -o $DIR/src/scripts/setup_sdk https://gist.githubusercontent.com/stresler/64b9344650131686ab50/raw/db3b8edd6fcc41e79dae80b9408eb8e38e5bd494/gistfile1.txt | |
chmod 700 $DIR/src/scripts/setup_sdk | |
$DIR/chromite/bin/cros_sdk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment