Skip to content

Commit

Permalink
Add release-prepare script
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Sanchez committed Dec 17, 2013
1 parent d17439d commit 30cd1fb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions release-prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

if [[ $# != 1 ]]; then
echo "Usage: $0 VERSION"
exit 1
fi

VERSION="$1"
LOG_ENTRY="${VERSION} / $(date +%Y-%m-%d)\n\
------------------\n\
\n\
* ...\n"

sed -i "1i $LOG_ENTRY" History.md
sed -i "s/\(\"version\"\):.*$/\1: \"${VERSION}\",/" package.json
sed -i "s/\(\"version\"\):.*$/\1: \"${VERSION}\",/" bower.json

0 comments on commit 30cd1fb

Please sign in to comment.