From d32e0eb5ab7711570285ad3f00ddff87c97b4dac Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Tue, 28 Jan 2020 12:11:33 -0500 Subject: [PATCH] Removed include_all.lua since we now run cross platform and not all scripts run on all operating systems. --- include_all.lua | 61 ------------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 include_all.lua diff --git a/include_all.lua b/include_all.lua deleted file mode 100644 index c25dd54..0000000 --- a/include_all.lua +++ /dev/null @@ -1,61 +0,0 @@ ---[[ - This file is part of darktable, - copyright (c) 2014 Jérémy Rosen - copyright (c) 2018 Bill Ferguson - - darktable is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - darktable is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with darktable. If not, see . -]] ---[[ -INCLUDE ALL -Automatically include all scripts in the script repository - -This is intended for debugging purpose - - -USAGE -* require this file from your main lua config file: -* go to configuration => preferences -* Enable the scripts you want to use -* restart darktable - -Note that you need to restart DT for your changes to enabled scripts to take effect - -]] -local dt = require "darktable" -local io = require "io" - --- must be loaded for scripts using darktable.control_execute to work -require "official/yield" - -dt.configuration.check_version(...,{3,0,0},{4,0,0},{5,0,0}) - --- find all scripts, but skip the lib and tools directories -local output = io.popen("cd "..dt.configuration.config_dir.."/lua ;find . -name lib -prune -o -name tools -prune -o -name \\*.lua -print") - -local my_name={...} -my_name = my_name[1] -for line in output:lines() do - local req_name = line:sub(3,-5) - if req_name ~= my_name and not string.match(req_name, "yield") then - dt.preferences.register(my_name,req_name,"bool","enable "..req_name, - "Should the script "..req_name.." be enabled at next startup",false) - - if dt.preferences.read(my_name,req_name,"bool") then - require(req_name) - end - end -end - --- --- vim: shiftwidth=2 expandtab tabstop=2 cindent syntax=lua