From 16156a3e5851ca7ea953887797f37a44b98f05fc Mon Sep 17 00:00:00 2001 From: Tobias Ellinghaus Date: Wed, 10 Dec 2014 23:47:53 +0100 Subject: [PATCH] Initial commit to add some structure --- .gitignore | 2 ++ README.md | 6 ++++++ contrib/README | 1 + official/README | 1 + official/hello_world.lua | 21 +++++++++++++++++++++ 5 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 contrib/README create mode 100644 official/README create mode 100644 official/hello_world.lua diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c5f88a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +.*.swp diff --git a/README.md b/README.md index a4eb2e9..78bf514 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ lua-scripts =========== + +the lua scripts in this repository are meant to be used together with darktable. either copy them individually to `~/.config/darktable/lua` (you might have to create that folder) or just copy/symlink the whole repository there. that allows to update all your scripts with a simple call to `git pull`. + +to enable one of the scripts you have to add a line like `require "official/hello_world"` which would enable the example script in `official/hello_world.lua`. + +in order to have your own scripts added here they have to be under a free license (GPL2+ will definitely work, others can be discussed). scripts in the `official/` subfolder are maintained by the darktable community, those under `contrib/` are meant to have an "owner" who maintains them. \ No newline at end of file diff --git a/contrib/README b/contrib/README new file mode 100644 index 0000000..fa543f1 --- /dev/null +++ b/contrib/README @@ -0,0 +1 @@ +scripts in this folder are meant to have an "owner" who maintains them. diff --git a/official/README b/official/README new file mode 100644 index 0000000..ed3b821 --- /dev/null +++ b/official/README @@ -0,0 +1 @@ +scripts in this folder are maintained by the darktable community. diff --git a/official/hello_world.lua b/official/hello_world.lua new file mode 100644 index 0000000..7262d6e --- /dev/null +++ b/official/hello_world.lua @@ -0,0 +1,21 @@ +--[[ + This file is part of darktable, + copyright (c) 2014 Tobias Ellinghaus + + 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 . +]] + +local dt = require "darktable" + +dt.print("hello, world")