# HG changeset patch # User Brendan Rius # Date 1497018751 -7200 # Node ID 161ad9354cbd807a70841eba8a2f88ba80173b63 # Parent 4a03cede476393788c57bec2c4528705f0c656e6# Parent 94feb02907154e1cc801f577aa401c9392f8f20c Merge pull request #21 from ericjperry/master Update install.sh to support using a different tag and repo committer: GitHub diff -r 4a03cede4763 -r 161ad9354cbd install.sh --- a/install.sh Thu Apr 13 11:29:48 2017 +0200 +++ b/install.sh Fri Jun 09 16:32:31 2017 +0200 @@ -7,8 +7,8 @@ echo " | | __/ | " echo " |_| |___/ " - -repository="https://github.com/brendan-rius/jupyter-c-kernel.git" +tag_name="$1" +repository="${2:-https://github.com/brendan-rius/jupyter-c-kernel.git}" repo_name="jupyter-c-kernel" set -x @@ -17,8 +17,12 @@ pip install $repo_name; echo "Done. " echo ":: Cloning Jupyter C-kernel... " git clone $repository $repo_name; echo "Done. " +cd $repo_name +if [ ! -z "$tag_name" ]; then + echo ":: Using tag $tag_name" + git checkout "$tag_name"; echo "Done." +fi echo ":: Installing kernel specification" -cd $repo_name jupyter-kernelspec install c_spec/ ; echo "Done." echo ":: Removing repository" cd ..