Permalink
Browse files

add LuaDist infrastructure

  • Loading branch information...
1 parent ee2bbdf commit 17138f38d8b21279dccc19dc5c8b0ce57ee06fe0 @fperrad committed Feb 29, 2012
Showing with 499 additions and 4 deletions.
  1. +34 −0 CMakeLists.txt
  2. +13 −4 Makefile
  3. +436 −0 dist.cmake
  4. +16 −0 dist.info
View
@@ -0,0 +1,34 @@
+# lua-Spore : <http://fperrad.github.com/lua-Spore/>
+
+project ( lua-spore NONE )
+cmake_minimum_required ( VERSION 2.6 )
+include ( dist.cmake )
+
+install_lua_module ( Spore src/Spore.lua )
+install_lua_module ( Spore.Core src/Spore/Core.lua )
+install_lua_module ( Spore.GoogleDiscovery src/Spore/GoogleDiscovery.lua )
+install_lua_module ( Spore.Middleware.Auth.AWS src/Spore/Middleware/Auth/AWS.lua )
+install_lua_module ( Spore.Middleware.Auth.Basic src/Spore/Middleware/Auth/Basic.lua )
+install_lua_module ( Spore.Middleware.Auth.Bearer src/Spore/Middleware/Auth/Bearer.lua )
+install_lua_module ( Spore.Middleware.Auth.Digest src/Spore/Middleware/Auth/Digest.lua )
+install_lua_module ( Spore.Middleware.Auth.OAuth src/Spore/Middleware/Auth/OAuth.lua )
+install_lua_module ( Spore.Middleware.Cache src/Spore/Middleware/Cache.lua )
+install_lua_module ( Spore.Middleware.DoNotTrack src/Spore/Middleware/DoNotTrack.lua )
+install_lua_module ( Spore.Middleware.Format.JSON src/Spore/Middleware/Format/JSON.lua )
+install_lua_module ( Spore.Middleware.Format.XML src/Spore/Middleware/Format/XML.lua )
+install_lua_module ( Spore.Middleware.Format.YAML src/Spore/Middleware/Format/YAML.lua )
+install_lua_module ( Spore.Middleware.Logging src/Spore/Middleware/Logging.lua )
+install_lua_module ( Spore.Middleware.Mock src/Spore/Middleware/Mock.lua )
+install_lua_module ( Spore.Middleware.Parameter.Default src/Spore/Middleware/Parameter/Default.lua )
+install_lua_module ( Spore.Middleware.Parameter.Force src/Spore/Middleware/Parameter/Force.lua )
+install_lua_module ( Spore.Middleware.Proxy.Basic src/Spore/Middleware/Proxy/Basic.lua )
+install_lua_module ( Spore.Middleware.Redirection src/Spore/Middleware/Redirection.lua )
+install_lua_module ( Spore.Middleware.Runtime src/Spore/Middleware/Runtime.lua )
+install_lua_module ( Spore.Middleware.UserAgent src/Spore/Middleware/UserAgent.lua )
+install_lua_module ( Spore.Protocols src/Spore/Protocols.lua )
+install_lua_module ( Spore.Request src/Spore/Request.lua )
+install_lua_executable ( discovery2spore src/discovery2spore )
+
+install_data ( CHANGES COPYRIGHT README.md )
+install_test ( test/ )
+install_foo ( eg/ )
View
@@ -12,7 +12,7 @@ DPREFIX := $(DESTDIR)$(PREFIX)
BINDIR := $(DPREFIX)/bin
LIBDIR := $(DPREFIX)/share/lua/$(LUAVER)
-all:
+all: dist.cmake
@echo "Nothing to build here, you can just make install"
install:
@@ -85,16 +85,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
@@ -137,5 +143,8 @@ clean:
rm -rf doc
rm -f MANIFEST *.bak src/luacov.*.out *.rockspec README.html
-.PHONY: test rockspec CHANGES
+realclean: clean
+ rm -f dist.cmake
+
+.PHONY: test rockspec CHANGES dist.info
Oops, something went wrong.

0 comments on commit 17138f3

Please sign in to comment.