mod_admin_web: Include build instructions in metadata
authorKim Alvefur <zash@zash.se>
Thu, 08 Oct 2020 12:20:48 +0200
changeset 4183 bcff0e8b7b4d
parent 4182 bbd584cee042
child 4184 a8aacfbdaea9
mod_admin_web: Include build instructions in metadata This should make it produce an installable luarock, and even fetch the dependencies on install.
mod_admin_web/README.markdown
--- 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