Permalink
Browse files

Makefile: fix things so rockspecs aren't distributed (a hard problem)…

… but do have the right MD5 sums
  • Loading branch information...
1 parent d9722d0 commit b1db4e5ae44e54eb41401ebfc8609d3c30890395 @rrthomas rrthomas committed Oct 18, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 Makefile
View
8 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'` && \

0 comments on commit b1db4e5

Please sign in to comment.