From 1f7dddb5c5e97096423991e9da7546468b8fc969 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 12 Jan 2012 16:34:53 +0100 Subject: add compat scripts for acf-cli and mvc.lua they log and forward to new location --- www/Makefile | 5 ++++- www/cgi-bin/cli | 5 +++++ www/cgi-bin/mvc.lua | 7 +++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 www/cgi-bin/cli create mode 100644 www/cgi-bin/mvc.lua (limited to 'www') diff --git a/www/Makefile b/www/Makefile index 71e6c62..cf0bd57 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1,6 +1,8 @@ include ../config.mk WWW_DIST=cgi-bin/acf\ + cgi-bin/mvc.lua\ + cgi-bin/cli\ index.html\ EXTRA_DIST=Makefile @@ -32,6 +34,7 @@ install: mkdir -p "$$dest";\ cp "$$i" "$$dest";\ done - chmod 755 $(install_dir)/cgi-bin/acf + chmod 755 $(install_dir)/cgi-bin/acf \ + $(install_dir)/cgi-bin/cli .PHONY: $(phony) diff --git a/www/cgi-bin/cli b/www/cgi-bin/cli new file mode 100644 index 0000000..0db8eba --- /dev/null +++ b/www/cgi-bin/cli @@ -0,0 +1,5 @@ +#!/bin/sh + +echo "WARNING: the $0 script has be moved to $(which acf-cli)" >&2 + +exec acf-cli "$@" diff --git a/www/cgi-bin/mvc.lua b/www/cgi-bin/mvc.lua new file mode 100644 index 0000000..436c5ca --- /dev/null +++ b/www/cgi-bin/mvc.lua @@ -0,0 +1,7 @@ + +-- require("acf.fs") +local fs = require("fs") + +fs.write_line_file("/var/log/acf.log", "WARNING: old mvc.lua was used") + +return require("mvc") -- cgit v1.2.3