summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2012-10-05 12:59:26 +0100
committerReuben Thomas <rrt@sc3d.org>2012-10-05 12:59:26 +0100
commit2d3a182f8c128d2e972734493c445b1a5ef5f635 (patch)
tree336b73ae245435878f1493d4a68cba2f78d600e6
parentba7c99ebf3758e8c9fba10f946a6b35e8d7b4fbf (diff)
downloadlrexlib-2d3a182f8c128d2e972734493c445b1a5ef5f635.tar.gz
Makefile: test rockspecs after uploading the distribution before announcing it.
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9eac009..e0d9205 100644
--- a/Makefile
+++ b/Makefile
@@ -29,11 +29,17 @@ dist: docs
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)
+WOGER_ARGS = package=$(PROJECT) package_name=$(PROJECT) version=$(VERSION) description="Lua binding for regex libraries" notes=release-notes dist_type="zip" github_user=rrthomas
+
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 && git push --tags && \
- woger lua,github package=$(PROJECT) package_name=$(PROJECT) version=$(VERSION) description="Lua binding for regex libraries" notes=release-notes dist_type="zip" github_user=rrthomas
+ woger github $(WOGER_ARGS) && \
+ for i in $(REGNAMES); do
+ LUAROCKS_CONFIG=luarocks-config.lua luarocks --tree=luarocks build $$i; \
+ done && \
+ woger lua $(WOGER_ARGS)
@echo "Don't forget to upload release to github!"
rm -f release-notes