From e8e89db97f2713ec0de2916f2fbe89a02477f92a Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Sun, 17 Apr 2016 16:18:37 +0100 Subject: [PATCH] docgen: remove now unnecessary build.sh script --- build.sh | 5 ----- gendoc.lua | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100755 build.sh diff --git a/build.sh b/build.sh deleted file mode 100755 index ac25748092..0000000000 --- a/build.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -if [ -z "$EFL_DOC_ROOT" ]; then - export EFL_DOC_ROOT="dokuwiki/data/pages" -fi -elua gendoc.lua -r "$EFL_DOC_ROOT" "$@" diff --git a/gendoc.lua b/gendoc.lua index 800d6f31cd..07e3478790 100644 --- a/gendoc.lua +++ b/gendoc.lua @@ -1233,9 +1233,9 @@ getopt.parse { if opts["v"] then verbose = true end - root_nspace = opts["n"] or "efl" + root_nspace = (not opts["n"] or opts["n"] == "") and "efl" or opts["n"] if not opts["r"] or opts["r"] == "" then - error("no documentation root supplied") + opts["r"] = "dokuwiki/data/pages" end doc_root = path_join(opts["r"], nspace_to_path(root_nspace)) if not args[1] then