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