diff --git a/scripts/post_release.sh b/scripts/post_release.sh index 9151e40..edac2c6 100755 --- a/scripts/post_release.sh +++ b/scripts/post_release.sh @@ -7,6 +7,7 @@ VERSION=${1#v} SERVER=$2 GITHUBUSER=$3 PKG=$(find . -maxdepth 2 -name __init__.py -print0 | xargs -0 -n1 dirname | xargs basename) +PKG_UPPER=$(echo $PKG | tr '[:lower:]' '[:upper:]') MD5=$(md5sum dist/${PKG}-$VERSION.tar.gz | cut -f1 -d' ') cp -r conda-recipe/ dist/conda-recipe-$VERSION sed -i -E -e "s/version:(.+)/version: $VERSION/" -e "s/path:(.+)/fn: $PKG-$VERSION.tar.gz\n url: https:\/\/github.com\/$GITHUBUSER\/$PKG\/releases\/download\/v$VERSION\/$PKG-$VERSION.tar.gz\n md5: $MD5/" dist/conda-recipe-$VERSION/meta.yaml