summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-04-24 07:23:32 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-04-24 07:23:44 -0600
commit961562b59482e4a86adc729903afd757da4cd619 (patch)
tree938a3fa78eb5252e8633a955940ca9e40cdc8730 /tools
parent9ce0fa3daf8f8040c128a9ecc6e2282a59fbf5cc (diff)
remove tools superceded by list_scripts.lua
Diffstat (limited to 'tools')
-rwxr-xr-xtools/luals26
-rwxr-xr-xtools/mkluacatalog41
2 files changed, 0 insertions, 67 deletions
diff --git a/tools/luals b/tools/luals
deleted file mode 100755
index 0da41d208b..0000000000
--- a/tools/luals
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/lua5.3
-
-function scripts (path)
- local out = io.popen (
- string.format ("find '%s' -maxdepth 1 -type f -iname \"[^_]*.lua\" | grep -ve /s_", path)
- )
- return function()
- for file in out:lines() do
- return file
- end
- return nil
- end
-end
-
-function ardour (v)
- local newline = string.find (v['description'], '\n')
- if newline then
- io.write (string.format ("T:%s:N:%s:D:%s\n", v['type'], v['name'], string.sub (v['description'], 0, newline-1)))
- else
- io.write (string.format ("T:%s:N:%s:D:%s\n", v['type'], v['name'], v['description']))
- end
-end
-
-for script in scripts ("share/scripts/") do
- loadfile (script)()
-end
diff --git a/tools/mkluacatalog b/tools/mkluacatalog
deleted file mode 100755
index fb702d1ab2..0000000000
--- a/tools/mkluacatalog
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-tooldir=`dirname $0`
-
-$tooldir/luals | awk '
-BEGIN {
- type_name_map["dsp"] = "DSP";
- type_name_map["EditorAction"] = "Editor Actions";
- type_name_map["EditorHook"] = "Editor Hooks";
- type_name_map["SessionInit"] = "Session Initialization";
- type_name_map["session"] = "Session";
-}
-/T:/ {
- split ($0, a, ":");
-
- if (a[2] in type_name_map) {
- type_name = type_name_map[a[2]];
- } else {
- type_name = a[2];
- }
-
- types[scripts] = type_name;
- type_names[type_name] = type_name;
- names[scripts] = a[4];
- descriptions[scripts] = a[6];
- scripts++;
-}
-END {
- tnc = asort (type_names);
-
- for (tn = 1; tn <= tnc; ++tn) {
- printf ("<h2>%s</h2>\n<dl>\n", type_names[tn]);
- for (s = 1; s <= scripts; ++s) {
- if (types[s] == type_names[tn]) {
- printf ("<dt>%s</dt><dd>%s<dd>\n", names[s], descriptions[s]);
- }
- }
- printf ("</dl>\n");
- }
-}
-'