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.
This commit is contained in:
Justin Mayer 2013-09-24 21:37:53 +02:00
commit 2f57b86560

View file

@ -27,4 +27,4 @@ prepare = Next release
url = http://docs.getpelican.com/{tag}
[commands]
bump = sed -i "s/last_stable\s*=.*/last_stable = '{version}'/" docs/conf.py
bump = sed -i "" "s/last_stable\s*=.*/last_stable = '{version}'/" docs/conf.py