From 2a8e990167d6e899f2f4ad4c7e820a2ad6374df6 Mon Sep 17 00:00:00 2001 From: Larry Bradley Date: Mon, 20 Sep 2021 13:08:42 -0400 Subject: Add recipe for jwebbinar notebooks --- jwebbinar_prep/build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 jwebbinar_prep/build.sh (limited to 'jwebbinar_prep/build.sh') diff --git a/jwebbinar_prep/build.sh b/jwebbinar_prep/build.sh new file mode 100644 index 0000000..7ab527c --- /dev/null +++ b/jwebbinar_prep/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/jwebbinar_notebooks" +usedir="$(pwd)" + +if [[ -d ${usedir}/work ]]; then + usedir=${usedir}/work +fi + +mkdir -p "${dest}" +rsync -av --exclude '.git*' --exclude 'README.md' --exclude '.DS_Store' "${usedir}" "${dest}"/ -- cgit