3bcdc902dc
* Based on `ssf-formula` (v0.3.0) - https://github.com/myii/ssf-formula/pull/5 * Unable to use `pillar.example` directly for testing - Used it as a basis for `test/salt/pillar/default.sls` - Brought useful changes back to `pillar.example` * Fix: avoid `users/googleauth.sls` for `RedHat` & `Suse` * Close #203
31 lines
899 B
Bash
Executable File
31 lines
899 B
Bash
Executable File
#!/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/
|
|
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 ..
|