summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-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")