diff options
author | Einhard Leichtfuß <alguien@respiranto.de> | 2018-12-23 17:59:31 +0100 |
---|---|---|
committer | Einhard Leichtfuß <alguien@respiranto.de> | 2018-12-23 18:02:41 +0100 |
commit | 578c30417de768429e7a75eb8d30c5982043d3b0 (patch) | |
tree | f94b12f063af28ac2f8119e54cb5f32281232fa1 /basic.sh | |
parent | 53fc988c4110e5a809d5780483c6a072c2dfae4e (diff) |
Split off config.sh and add maintainer variable
Now, other people than myself might be maintainer.
Also, add `| exit 1' to the sourcing of scripts.
Furthermore, add note to the scripts in the sample.* files.
Diffstat (limited to 'basic.sh')
-rw-r--r-- | basic.sh | 17 |
1 files changed, 4 insertions, 13 deletions
@@ -25,21 +25,12 @@ # All methods operate on the file "$tmp". -# Dictionaries in the VCS tree, GPL2 assumed. -typeset -a vcs_langs -vcs_langs=( - deu-eng eng-deu - fra-eng eng-fra - spa-eng eng-spa - ) -typeset -a wikdict_langs -wikdict_langs=( - fra-deu deu-fra - ) +script_path="$(realpath "$0")" +script_dir="${script_path%/*}" + +. "${script_dir}/config.sh" || exit 1 -typeset -a langs -langs=( ${vcs_langs[@]} ${wikdict_langs[@]} ) function init { |