summaryrefslogtreecommitdiff
path: root/jwebbinar_prep/build.sh
blob: 7ab527cef5c8b16f838db468be1dd043cb5a22d1 (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/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}"/