summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-12 16:34:53 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-12 16:36:10 +0100
commit1f7dddb5c5e97096423991e9da7546468b8fc969 (patch)
tree357a4ca9999c91f549b901a870653f39c2e853aa
parentde89f239364a2e96b72958a078b7789f431126c3 (diff)
downloadacf-core-1f7dddb5c5e97096423991e9da7546468b8fc969.tar.bz2
acf-core-1f7dddb5c5e97096423991e9da7546468b8fc969.tar.xz
add compat scripts for acf-cli and mvc.lua
they log and forward to new location
-rw-r--r--www/Makefile5
-rw-r--r--www/cgi-bin/cli5
-rw-r--r--www/cgi-bin/mvc.lua7
3 files changed, 16 insertions, 1 deletions
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")