1
0
Fork 0
forked from github/pelican
pelican-theme/bumpr.rc
Justin Mayer 2f57b86560 Modify sed command in bumpr.rc to support BSD
It appears that BSD sed, unlike Linux, has a requirement that you
provide an extension to the -i option. So, while Linux allows:

    sed -i "sed-command"

... to edit in-place, the BSD variant needs to have:

    sed -i "" "sed-command"

i.e., with an empty backup suffix.
2013-09-24 21:37:53 +02:00

30 lines
626 B
Text

[bumpr]
file = pelican/__init__.py
vcs = git
clean =
python setup.py clean
rm -rf *egg-info build dist
tests = python -m unittest discover
publish = python setup.py sdist register upload
files = README.rst
[bump]
unsuffix = true
message = Bump version {version}
[prepare]
part = patch
suffix = dev
message = Prepare version {version} for next development cycle
[changelog]
file = docs/changelog.rst
separator = =
bump = {version} ({date:%Y-%m-%d})
prepare = Next release
[readthedoc]
url = http://docs.getpelican.com/{tag}
[commands]
bump = sed -i "" "s/last_stable\s*=.*/last_stable = '{version}'/" docs/conf.py