summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2012-10-18 14:14:45 +0100
committerReuben Thomas <rrt@sc3d.org>2012-10-18 14:14:45 +0100
commitb1db4e5ae44e54eb41401ebfc8609d3c30890395 (patch)
treed2fd7bf4fa4b2b9ebd6b3a2d8a1c3cee2584e2b3
parentd9722d0277c6bc4df3d985cf0b046a3704489de9 (diff)
downloadlrexlib-b1db4e5ae44e54eb41401ebfc8609d3c30890395.tar.gz
Makefile: fix things so rockspecs aren't distributed (a hard problem) but do have the right MD5 sums
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 93b2690..6e69c5d 100644
--- a/Makefile
+++ b/Makefile
@@ -22,17 +22,17 @@ check:
docs:
@make -C doc
-rockspecs:
+rockspecs: dist
rm -f *.rockspec
lua mkrockspecs.lua $(VERSION) `md5sum $(DISTFILE)`
-dist: docs rockspecs
+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" "lrexlib/luarocks/*" && mv $(DISTFILE) $(PROJECT) && cd $(PROJECT) && unzip $(DISTFILE) && mv $(PROJECT) $(PROJECT_VERSIONED) && rm -f $(DISTFILE) && zip $(DISTFILE) -r $(PROJECT_VERSIONED) && rm -rf $(PROJECT_VERSIONED)
+ cd .. && rm -f $(DISTFILE) && zip $(DISTFILE) -r $(PROJECT) -x "lrexlib/.git/*" "*.gitignore" "*.o" "*.a" "*.so" "*.so.*" "*.zip" "*SciTE.properties" "*scite.properties" "*.rockspec" "lrexlib/luarocks/*" && 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: dist check
+release: rockspecs check
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'` && \