From 312db58d60949063e554c9b705b652e497ba90e1 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 14 Dec 2018 21:17:43 -0500 Subject: Initial commit of da5-notebooks (#444) * Initial commit of da5-notebooks * da5_notebooks: Finish recipe --- da5_notebooks/build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 da5_notebooks/build.sh (limited to 'da5_notebooks/build.sh') diff --git a/da5_notebooks/build.sh b/da5_notebooks/build.sh new file mode 100644 index 0000000..c389c70 --- /dev/null +++ b/da5_notebooks/build.sh @@ -0,0 +1,15 @@ +if [[ -z ${PKG_NAME} ]]; then + echo "Conda build has changed out from under you. PKG_NAME is undefined..." + exit 1 +fi + +pkg_name=$(echo ${PKG_NAME} | tr '-' '_') +dest="${PREFIX}/share/${pkg_name}" +usedir="$(pwd)" + +if [[ -d ${usedir}/work ]]; then + usedir=${usedir}/work +fi + +mkdir -p "${dest}" +rsync -a "${usedir}"/notebooks/ "${dest}"/ -- cgit