Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (36 sloc) 1.653 kb
# Makefile for lrexlib
# See src/*/Makefile for user-definable settings
REGNAMES = gnu pcre posix oniguruma tre
PROJECT = lrexlib
VERSION = 2.7.1
PROJECT_VERSIONED = $(PROJECT)-$(VERSION)
DISTFILE = $(PROJECT_VERSIONED).zip
install: dist
@for i in *.rockspec; do \
luarocks make $$i; \
done
check:
@if test -z "$(LUA)"; then echo "Set LUA to run tests"; exit 1; fi
@for i in $(REGNAMES); do \
LUA_PATH="test/?.lua;$(LUA_PATH)" $(LUA) test/runtest.lua -dsrc/$$i $$i; \
done
docs:
@make -C doc
rockspecs: dist
rm -f *.rockspec
lua mkrockspecs.lua $(VERSION) `md5sum $(DISTFILE)`
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" "*.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: 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'` && \
git push && git push --tags && \
woger github $(WOGER_ARGS) && \
for i in *.rockspec; do \
LUAROCKS_CONFIG=luarocks-config.lua luarocks --tree=luarocks build $$i; \
done && \
woger lua $(WOGER_ARGS)
rm -f release-notes
Jump to Line
Something went wrong with that request. Please try again.