mirror of
https://github.com/saltstack-formulas/template-formula.git
synced 2025-04-17 10:10:28 +00:00
fix(convert-formula.sh): apply remaining suggestions from #180
* https://github.com/saltstack-formulas/template-formula/pull/180#discussion_r357308821 * https://github.com/saltstack-formulas/template-formula/pull/180#discussion_r357318860 * https://github.com/saltstack-formulas/template-formula/pull/180#discussion_r357362707
This commit is contained in:
parent
cef5b27403
commit
76ecd447be
1 changed files with 6 additions and 5 deletions
|
@ -37,15 +37,16 @@ convert_formula() {
|
|||
git reset \
|
||||
"$(echo 'feat: initial commit' \
|
||||
| git commit-tree 'HEAD^{tree}')"
|
||||
git rm --quiet bin/convert-formula.sh AUTHORS.md CHANGELOG.md
|
||||
git rm --quiet bin/convert-formula.sh AUTHORS.md CHANGELOG.md \
|
||||
docs/_static/css/custom.css docs/AUTHORS.rst docs/CHANGELOG.rst \
|
||||
docs/conf.py docs/CONTRIBUTING_DOCS.rst docs/index.rst
|
||||
git mv TEMPLATE "${NEW_NAME}"
|
||||
grep --recursive --files-with-matches --exclude-dir=.git TEMPLATE . \
|
||||
| xargs -L 1 ex -sc '%s/TEMPLATE/'"${NEW_NAME}"'/g|x'
|
||||
| xargs -L 1 ex -u NONE -sc '%s/TEMPLATE/'"${NEW_NAME}"'/g|x'
|
||||
# shellcheck disable=SC2016 # Expressions don't expand in single quotes
|
||||
git commit --quiet --all \
|
||||
--message 'feat: convert `template-formula` to `'"${NEW_NAME}"'-formula`
|
||||
|
||||
BREAKING CHANGE: changed all state names and ids'
|
||||
--message 'feat: convert `template-formula` to `'"${NEW_NAME}"'-formula`' \
|
||||
--message 'BREAKING CHANGE: changed all state names and ids'
|
||||
}
|
||||
|
||||
args "$@"
|
||||
|
|
Loading…
Add table
Reference in a new issue