Commit a4bbf670 authored by François Perrad's avatar François Perrad

add LuaDist infrastructure

parent e7c6d521
# lua-CoatPersistent : <http://fperrad.github.com/lua-CoatPersistent/>
project ( lua-coatpersistent NONE )
cmake_minimum_required ( VERSION 2.6 )
include ( dist.cmake )
install_lua_module ( Coat.Persistent src/Coat/Persistent.lua )
install_data ( CHANGES COPYRIGHT README.md )
install_test ( test/ )
......@@ -11,7 +11,7 @@ PREFIX := /usr/local
DPREFIX := $(DESTDIR)$(PREFIX)
LIBDIR := $(DPREFIX)/share/lua/$(LUAVER)
all:
all: dist.cmake
@echo "Nothing to build here, you can just make install"
install:
......@@ -55,16 +55,22 @@ while (<>) { \
version:
@echo $(VERSION)
CHANGES:
CHANGES: dist.info
perl -i.bak -pe "s{^$(VERSION).*}{q{$(VERSION) }.localtime()}e" CHANGES
dist.info:
perl -i.bak -pe "s{^version.*}{version = \"$(VERSION)\"}" dist.info
tag:
git tag -a -m 'tag release $(VERSION)' $(VERSION)
doc:
git read-tree --prefix=doc/ -u remotes/origin/gh-pages
MANIFEST: doc
dist.cmake:
wget https://raw.github.com/LuaDist/luadist/master/dist.cmake
MANIFEST: doc dist.cmake
git ls-files | perl -e '$(manifest_pl)' > MANIFEST
$(TARBALL): MANIFEST
......@@ -109,5 +115,8 @@ clean:
rm -rf doc
rm -f MANIFEST *.bak *.db src/luacov.*.out src/*.db src/*.png test/*.png *.rockspec README.html
.PHONY: test rockspec CHANGES
realclean: clean
rm -f dist.cmake
.PHONY: test rockspec CHANGES dist.info
This diff is collapsed.
name = "lua-coatpersistent"
version = "0.1.1"
desc = "an ORM for lua-Coat"
author = "Francois Perrad"
license = "MIT/X11"
url = "http://fperrad.github.com/lua-CoatPersistent/"
maintainer = "Francois Perrad"
depends = {
"lua ~> 5.1",
"luasql-sqlite3 >= 2.2.0",
"dado >= 1.2.0",
"lua-coat >= 0.8.5",
"lua-testmore >= 0.2.3",
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment