# HG changeset patch # User Eric Perry # Date 1484756331 18000 # Node ID d3fdb29f3fdc55e8a4f8cb9ab675fcb223ca6a87 # Parent 69fc0b9c02b83c510c3889a9257384ae5b77979d Parameterized install.sh script to allow specification of tag and repository. diff -r 69fc0b9c02b8 -r d3fdb29f3fdc install.sh --- a/install.sh Wed Jun 08 11:44:17 2016 +0100 +++ b/install.sh Wed Jan 18 11:18:51 2017 -0500 @@ -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,6 +17,10 @@ pip install $repo_name; echo "Done. " echo ":: Cloning Jupyter C-kernel... " git clone $repository $repo_name; echo "Done. " +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."