From 3b2cdc79999623ebad6a18b6df19091048d3adbf Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 31 Mar 2020 11:31:44 -0400 Subject: Initial commit of jdat_notebooks (#633) * Initial commit of jdat_notebooks * Added initial semantic version * Minor improvements: * Increase verbosity * Exclude .git* related files in destination * Include environment.yml in destination Co-authored-by: Joseph Curtin --- jdat_notebooks/build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 jdat_notebooks/build.sh (limited to 'jdat_notebooks/build.sh') diff --git a/jdat_notebooks/build.sh b/jdat_notebooks/build.sh new file mode 100644 index 0000000..504db62 --- /dev/null +++ b/jdat_notebooks/build.sh @@ -0,0 +1,14 @@ +if [[ -z ${PKG_NAME} ]]; then + echo "Conda build has changed out from under you. PKG_NAME is undefined..." + exit 1 +fi + +dest="${PREFIX}/share/${PKG_NAME}" +usedir="$(pwd)" + +if [[ -d ${usedir}/work ]]; then + usedir=${usedir}/work +fi + +mkdir -p "${dest}" +rsync -av --exclude '.git*' "${usedir}"/environment.yml "${usedir}"/notebooks/ "${dest}"/ -- cgit