Skip to content

Instantly share code, notes, and snippets.

@mserranom
Created March 29, 2018 09:11
Show Gist options
  • Save mserranom/6d09a16a8ccf136b2e50002921419277 to your computer and use it in GitHub Desktop.
Save mserranom/6d09a16a8ccf136b2e50002921419277 to your computer and use it in GitHub Desktop.
Example documentation postproccessing
echo "postprocessing documentation..."
PACKAGE=`cat blurr/PACKAGE` # PACKAGE and VERSION are generated during pypy package build
VERSION=`cat blurr/VERSION`
BRANCH=`git branch | sed -n -e 's/^\* \(.*\)/\1/p'`
sed -e "s/\@BRANCH@/$BRANCH/" binder/README-template.md > binder/README.md
sed -e "s/\@PACKAGE@/$PACKAGE/" -e "s/\@VERSION@/$VERSION/" binder/requirements-template.txt > binder/requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment