X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=searchindex.sh;h=526877dc7de0ffc2f540e39fe3226d06b5a12f7a;hb=65b04e000d563f2347370cbf3e1e01cf2af0a168;hp=66f2704e97472657c7b1c5e97f53fd34043e6e24;hpb=7c77b7ea9dca882837840bfe9508801bafeae472;p=shellwiki diff --git a/searchindex.sh b/searchindex.sh index 66f2704..526877d 100755 --- a/searchindex.sh +++ b/searchindex.sh @@ -14,7 +14,7 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR # IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -export _EXEC="${0%/*}/" _DATA="." +export _EXEC="${_EXEC:-${0%/*}/}" _DATA="${_DATA:-.}" verb="" v=0 cmd="" force="" location="" help() { @@ -59,14 +59,15 @@ help() { Options: --exec INSTALL_DIR - Point to the location of your shellwiki installation. This will - default to the path at which the script is called, if it can be - determined. + Point to the location of your shellwiki installation. Without + this optin, the location will be read from the environments + variable "\$_EXEC", or will default to the path at which the + script is called, if it can be determined. --data SITE_DIR Point to the location of your site installation. I.e. the directory - containing your "pages/" and "index/" dir. Defaults to working - directory. + containing your "pages/" and "index/" dir. Defaults to the + environment variable "\$_DATA" or the working directory. --force Add pages to index even if they seem to be indexed already.