From fc3501382c2aa3ef5b692f4f55c2616f9cade3f5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 25 Apr 2025 12:18:00 +0200 Subject: Move toolbox scripts to a "bin" directory. Add a super "rtt" command to run the scripts. --- bin/rtt-init | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/rtt-init (limited to 'bin/rtt-init') diff --git a/bin/rtt-init b/bin/rtt-init new file mode 100755 index 0000000..02b9e9b --- /dev/null +++ b/bin/rtt-init @@ -0,0 +1,13 @@ +#!/bin/bash + +echo installing node packages +npm install -s + +echo creating database +sqlite3 db < schema.sql + +for M in public/*/title.sql +do + echo registering module $(basename $(dirname $M)) + sqlite3 db < $M +done -- cgit v1.2.3