Saltstack Official FirewallD Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pre-commit_semantic-release.sh 908B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. ###############################################################################
  3. # (A) Update `FORMULA` with `${nextRelease.version}`
  4. ###############################################################################
  5. sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
  6. ###############################################################################
  7. # (B) Use `m2r2` to convert automatically produced `.md` docs to `.rst`
  8. ###############################################################################
  9. # Install `m2r2`
  10. pip3 install m2r2
  11. # Copy and then convert the `.md` docs
  12. cp ./*.md docs/
  13. cd docs/ || exit
  14. m2r2 --overwrite ./*.md
  15. # Change excess `H1` headings to `H2` in converted `CHANGELOG.rst`
  16. sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst
  17. sed -i -e '1,4s/-/=/g' CHANGELOG.rst
  18. # Use for debugging output, when required
  19. # cat AUTHORS.rst
  20. # cat CHANGELOG.rst
  21. # Return back to the main directory
  22. cd ..