summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2010-11-11 23:30:09 +0000
committerReuben Thomas <rrt@sc3d.org>2010-11-11 23:30:09 +0000
commite610a11ea765fd47634a8de97cec3afacc4960eb (patch)
tree6335656b3c4d2a8bdf27acb8ef370a4f8dfb9a5f
parent35e43310d883ad0788c7f52a96d216d9f05adc66 (diff)
downloadlrexlib-e610a11ea765fd47634a8de97cec3afacc4960eb.tar.gz
Add release target.
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1136833..3038999 100644
--- a/Makefile
+++ b/Makefile
@@ -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