Commit 06b94283 authored by François Perrad's avatar François Perrad

deb infrastructure

parent 34f96049
......@@ -10,3 +10,12 @@
*.db
*.png
luacov.*
/5.*
/debian/debhelper-build-stamp
/debian/files
/debian/lua-coatpersistent*
/debian/lua_versions
/debian/tmp
/debian/trash
......@@ -2,6 +2,7 @@ Revision history for lua-CoatPersistent
0.2.2
+ shadow _ENV
+ add Debian package infrastructure
0.2.1 Mon Nov 3 20:30:00 2014
+ 2 variants = 2 rockspec
......
......@@ -31,6 +31,7 @@ my @files = qw{MANIFEST}; \
while (<>) { \
chomp; \
next if m{^\.}; \
next if m{^debian/}; \
next if m{^rockspec/}; \
push @files, $$_; \
} \
......@@ -85,6 +86,17 @@ rock:
luarocks pack rockspec/lua-coatpersistent-luasql-$(VERSION)-$(REV).rockspec
luarocks pack rockspec/lua-coatpersistent-lsqlite3-$(VERSION)-$(REV).rockspec
debclean:
echo "lua-coatpersistent ($(shell git describe --dirty)) unstable; urgency=medium" > debian/changelog
echo "" >> debian/changelog
echo " * UNRELEASED" >> debian/changelog
echo "" >> debian/changelog
echo " -- $(shell git config --get user.name) <$(shell git config --get user.email)> $(shell date -R)" >> debian/changelog
fakeroot debian/rules clean
deb: debclean
fakeroot debian/rules binary
ifdef LUA_PATH
export LUA_PATH:=$(LUA_PATH);../test/?.lua
else
......@@ -128,5 +140,5 @@ clean:
realclean: clean
.PHONY: test rockspec CHANGES dist.info
.PHONY: test rockspec deb debclean CHANGES dist.info
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