diff options
author | Reuben Thomas <rrt@sc3d.org> | 2010-11-11 23:30:09 +0000 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2010-11-11 23:30:09 +0000 |
commit | e610a11ea765fd47634a8de97cec3afacc4960eb (patch) | |
tree | 6335656b3c4d2a8bdf27acb8ef370a4f8dfb9a5f | |
parent | 35e43310d883ad0788c7f52a96d216d9f05adc66 (diff) | |
download | lrexlib-e610a11ea765fd47634a8de97cec3afacc4960eb.tar.gz |
Add release target.
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -29,3 +29,11 @@ clean: dist: all git2cl > ChangeLog cd .. && rm -f $(DISTFILE) && zip $(DISTFILE) -r $(PROJECT) -x "lrexlib/.git/*" "*.gitignore" "*.o" "*.a" "*.so" "*.so.*" "*.zip" "*SciTE.properties" "*scite.properties" && mv $(DISTFILE) $(PROJECT) && cd $(PROJECT) && unzip $(DISTFILE) && mv $(PROJECT) $(PROJECT_VERSIONED) && rm -f $(DISTFILE) && zip $(DISTFILE) -r $(PROJECT_VERSIONED) && rm -rf $(PROJECT_VERSIONED) + +release: + agrep -d 'Release' $(VERSION) NEWS | tail -n +3 | head -n -2 > release-notes && \ + git diff --exit-code && \ + git tag -a -m "Release tag" rel-`echo $(VERSION) | sed -e 's/\./-/g'` && \ + git push && \ + woger lua-l $(PROJECT) "$(PROJECT)" $(VERSION) "Lua binding for regex libraries" release-notes && \ + rm -f release-notes |