Initial commit to add some structure

This commit is contained in:
Tobias Ellinghaus
2014-12-10 23:47:53 +01:00
parent 2c1ad4b804
commit 16156a3e58
5 changed files with 31 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*~
.*.swp

View File

@@ -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.

1
contrib/README Normal file
View File

@@ -0,0 +1 @@
scripts in this folder are meant to have an "owner" who maintains them.

1
official/README Normal file
View File

@@ -0,0 +1 @@
scripts in this folder are maintained by the darktable community.

21
official/hello_world.lua Normal file
View File

@@ -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 <http://www.gnu.org/licenses/>.
]]
local dt = require "darktable"
dt.print("hello, world")