Skip to content

Commit

Permalink
fix usage generation after #178
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed May 24, 2018
1 parent 5503e53 commit 49e4467
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ update-changelog:
mv CHANGELOG.md.new CHANGELOG.md; \
$(NULL)

update-usage:
@perl -pi -e 'undef $$/; s|\n```\nusage.*?```|"\n```\n".qx{./jira --help}."```"|esg' README.md

release:
perl -pi -e 'undef $$/; s/\n```\nusage.*```//sg' README.md
echo '```' >> README.md
./jira --help >> README.md 2>&1 || true
echo '```' >> README.md
make update-usage
git diff --exit-code --quiet README.md || git commit -m "Updated Usage" README.md
git commit -m "Updated Changelog" CHANGELOG.md
git commit -m "version bump" jira.go
Expand Down

0 comments on commit 49e4467

Please sign in to comment.