summaryrefslogtreecommitdiff
path: root/jdat_notebooks/build.sh
blob: 504db625bd13c3c71a068c0b4a56892d20972309 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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}"/