summaryrefslogtreecommitdiff
path: root/jdat_notebooks/build.sh
blob: 3549e38eb051d15da82cf535b8214d984179f2f7 (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}/README.md" "${usedir}"/notebooks/ "${dest}"/