Skip to content

Instantly share code, notes, and snippets.

@Ivanca
Created November 28, 2018 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ivanca/a9bb9e30c987c2b079add7b0ceb17e20 to your computer and use it in GitHub Desktop.
Save Ivanca/a9bb9e30c987c2b079add7b0ceb17e20 to your computer and use it in GitHub Desktop.
comand "make setup" to do make dev.clone && make dev.checkout && make dev.provision && make dev.up
# put it on .bashrc (or .zshrc for zsh)
# comand "make setup" to do make dev.clone && make dev.checkout && make dev.provision && make dev.up
# optional parameter for devstack git repo to clone
make() {
if [[ $@ =~ ^setup.* ]]; then
sh -ec '
if [ "$2" != "" ]; then
git clone $2
cd devstack
fi
make dev.clone &&
make dev.checkout &&
make dev.provision &&
make dev.up
'
else
make "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment