Skip to content
Snippets Groups Projects
Select Git revision
  • 7eb6ee73be890ab91f6787d2b36b1fe25ed652d3
  • master default protected
  • hsh-2025012100
  • hsh-2024111900
  • hsh-2024072400
  • hsh-2024060300
  • hsh-2024012900
  • hsh-2023121100
  • hsh-v1.1.9
  • hsh-v1.1.7
10 results

maxima-fork.lisp

Blame
  • pre-commit_semantic-release.sh 904 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`
    pip3 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 ..