From 53c846c4906f1fa15d6a97827bfbd545e0aa595f Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 12 Jan 2012 16:12:54 +0100 Subject: install the libs under "acf" namespace and use compat symlinks this means that you can do: fs = require("acf.fs") while still keep the old style for compat for now: require("fs") --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c5c0abd..57f726c 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ TAR=tar P=$(PACKAGE)-$(VERSION) tarball=$(P).tar.bz2 -install_dir=$(DESTDIR)/usr/share/lua/5.1/ +install_dir=$(DESTDIR)/usr/share/lua/5.1/acf all: clean: @@ -25,6 +25,10 @@ dist: $(tarball) install: mkdir -p "$(install_dir)" cp -a $(APP_DIST) "$(install_dir)" + # compatibility symlinks + for lib in $(APP_DIST); do \ + ln -s acf/$$lib "$(install_dir)"/../$$lib; \ + done $(tarball): $(DISTFILES) rm -rf $(P) -- cgit v1.2.3