changeset 4179:bcff0e8b7b4d

mod_admin_web: Include build instructions in metadata This should make it produce an installable luarock, and even fetch the dependencies on install.
author Kim Alvefur <zash@zash.se>
date Thu, 08 Oct 2020 12:20:48 +0200 (2020-10-08)
parents bbd584cee042
children a8aacfbdaea9
files mod_admin_web/README.markdown
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_admin_web/README.markdown	Wed Oct 07 15:42:30 2020 +0100
+++ b/mod_admin_web/README.markdown	Thu Oct 08 12:20:48 2020 +0200
@@ -2,6 +2,15 @@
 labels:
 - 'Stage-Beta'
 summary: Web administration interface
+rockspec:
+  build:
+    platforms:
+      unix:
+        copy_directories:
+          - admin_web/www_files
+        type: command
+        build_command: sh admin_web/get_deps.sh
+        install_command: cp admin_web/mod_admin_web.lua $(LUADIR)
 ...
 
 Introduction