Skip to content
Snippets Groups Projects
Select Git revision
  • 316740cd179e99efad34669b5c0a893986137aaa
  • master default
  • fix-remote-url_v4.10.0
  • fix-remote-url_v4.9.1
  • fix-remote-url_v4.8.3
  • fix-remote-url_v4.8.x
  • fix-remote-url_v4.7.x
  • fix-remote-url_v4.6.0
  • fix-remote-urls
9 results

locallib.php

Blame
  • pre-commit_semantic-release.sh 908 B
    #!/bin/sh
    
    ###############################################################################
    # (A) Update `FORMULA` with `${nextRelease.version}`
    ###############################################################################
    sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
    
    
    ###############################################################################
    # (B) Use `m2r2` to convert automatically produced `.md` docs to `.rst`
    ###############################################################################
    
    # Install `m2r2`
    pip3 install m2r2
    
    # Copy and then convert the `.md` docs
    cp ./*.md docs/
    cd docs/ || exit
    m2r2 --overwrite ./*.md
    
    # Change excess `H1` headings to `H2` in converted `CHANGELOG.rst`
    sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst
    sed -i -e '1,4s/-/=/g' CHANGELOG.rst
    
    # Use for debugging output, when required
    # cat AUTHORS.rst
    # cat CHANGELOG.rst
    
    # Return back to the main directory
    cd ..