Skip to content

Commit

Permalink
fix 'edit' task on 'Kookbook.py'
Browse files Browse the repository at this point in the history
  • Loading branch information
kwatch committed May 9, 2011
1 parent bde49cc commit 305c0a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kookbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ def current_branch_name():
@recipe
def task_edit(c):
"""update release number on files"""
fname = 'README.rst'
fnames = ['README.rst', 'scripts/*.sh']
replacer = [
(r'(:Release:\s+)\S+', lambda m: m.group(1) + release),
(r'\$Release:.*?\$', '$Release: %s $' % release),
]
edit('README.rst', 'versionswitcher.sh', by=replacer)
edit(*fnames, by=replacer)


@recipe
Expand Down

0 comments on commit 305c0a0

Please sign in to comment.