Skip to content
Snippets Groups Projects
Select Git revision
  • 9ae9bb8473d0d71810427b28640a3d3c432c10b2
  • master default protected
  • hsh_v4.5
  • hsh_v4-4
  • hsh_v4.4
  • hsh_v4.3
  • hsh_v4.1.x
  • hsh_v4.2
  • hsh_v4.1
  • hsh_v3.11
  • hsh_3.10
  • v3.11-r2-hsh
  • v3.11-r2
  • v3.11-r1
  • v3.10-r1
  • v3.9-r1
  • v3.8-r2
  • v3.8-r1
  • v3.7-r1
19 results

lib.php

Blame
  • pre-commit_semantic-release.sh 911 B
    #!/bin/sh
    
    ###############################################################################
    # (A) Update `FORMULA` with `${nextRelease.version}`
    ###############################################################################
    sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
    
    
    ###############################################################################
    # (B) Use `m2r` to convert automatically produced `.md` docs to `.rst`
    ###############################################################################
    
    # Install `m2r`
    sudo -H pip install m2r
    
    # Copy and then convert the `.md` docs
    cp ./*.md docs/
    cd docs/ || exit
    m2r --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 ..