Skip to content

Instantly share code, notes, and snippets.

@tritium21
Created January 25, 2016 10:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tritium21/e7b5d17b62a1be3917e5 to your computer and use it in GitHub Desktop.
Save tritium21/e7b5d17b62a1be3917e5 to your computer and use it in GitHub Desktop.
#!/bin/sh
""":"
which python3 >/dev/null 2>&1 && exec python3 "$0" "$@"
which python >/dev/null 2>&1 && exec python "$0" "$@"
which python2 >/dev/null 2>&1 && exec python2 "$0" "$@"
echo "Error: configure wrapper requires python"
exec echo "Either install python, or use cmake directly"
":"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment