From 266c083bd930991965850bb8e2a19f23d8575fa8 Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Tue, 18 Dec 2018 22:04:50 -0500 Subject: Rename recipe directory to be same as repo and package name. (#449) --- da5-notebooks/build.sh | 15 +++++++++++++++ da5-notebooks/meta.yaml | 20 ++++++++++++++++++++ da5_notebooks/build.sh | 15 --------------- da5_notebooks/meta.yaml | 20 -------------------- 4 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 da5-notebooks/build.sh create mode 100644 da5-notebooks/meta.yaml delete mode 100644 da5_notebooks/build.sh delete mode 100644 da5_notebooks/meta.yaml diff --git a/da5-notebooks/build.sh b/da5-notebooks/build.sh new file mode 100644 index 0000000..c389c70 --- /dev/null +++ b/da5-notebooks/build.sh @@ -0,0 +1,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}"/ diff --git a/da5-notebooks/meta.yaml b/da5-notebooks/meta.yaml new file mode 100644 index 0000000..deccdc3 --- /dev/null +++ b/da5-notebooks/meta.yaml @@ -0,0 +1,20 @@ +{% set name = 'da5-notebooks' %} +{% set version = '1.0' %} +{% set tag = 'v' + version %} +{% set number = '0' %} + +about: + home: https://github.com/spacetelscope/{{ name }} + license: BSD + summary: Collection of data analysis notebooks + +build: + number: {{ number }} + +package: + name: {{ name }} + version: {{ version }} + +source: + git_tag: {{ tag }} + git_url: https://github.com/spacetelescope/{{ name }}.git diff --git a/da5_notebooks/build.sh b/da5_notebooks/build.sh deleted file mode 100644 index c389c70..0000000 --- a/da5_notebooks/build.sh +++ /dev/null @@ -1,15 +0,0 @@ -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}"/ diff --git a/da5_notebooks/meta.yaml b/da5_notebooks/meta.yaml deleted file mode 100644 index deccdc3..0000000 --- a/da5_notebooks/meta.yaml +++ /dev/null @@ -1,20 +0,0 @@ -{% set name = 'da5-notebooks' %} -{% set version = '1.0' %} -{% set tag = 'v' + version %} -{% set number = '0' %} - -about: - home: https://github.com/spacetelscope/{{ name }} - license: BSD - summary: Collection of data analysis notebooks - -build: - number: {{ number }} - -package: - name: {{ name }} - version: {{ version }} - -source: - git_tag: {{ tag }} - git_url: https://github.com/spacetelescope/{{ name }}.git -- cgit