Skip to content

Commit

Permalink
Update bpkg's version info in the release target
Browse files Browse the repository at this point in the history
Having to change a version number in several places is a pain. This make
target is meant to allow us to change that version in one place (the
VERSION file), and propagate it elsewhere.
  • Loading branch information
rylnd committed May 6, 2015
1 parent cf8db5a commit ecdb032
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ all: shpec

release:
sed -i '' "s/^\( *\)VERSION=.*/\1VERSION=`cat VERSION`/" bin/shpec install.sh
git add install.sh bin/shpec VERSION
sed -i '' "s/^\( *\)\"version\":.*/\1\"version\": \"`cat VERSION`\",/" package.json
git add install.sh bin/shpec package.json VERSION
git commit -m "Release `cat VERSION`" || true
git push origin master
git tag `cat VERSION`
Expand Down

0 comments on commit ecdb032

Please sign in to comment.