#!/bin/sh

usage() {
	echo "This is leech internal configuration stuff. Nothing to see here, move along."
}

if [ -z "$CONFIG_DIR" ]; then
	usage
	exit 1
fi

# Load this first to override leech 1.1 stuff,
# i.e. make 1.1 -> 1.2 transition seamless
#
. "$CONFIG_DIR/default"

# leech configuration files, you don't need to modify these,
# it will work out of the box either you set CONFIG_DIR explicitly
# or not
#
FOODS="$CONFIG_DIR/foods"
DOWNLOADS="$CONFIG_DIR/downloads"
REVERSE_DOWNLOADS="$CONFIG_DIR/reverse-downloads"
WILD_DOWNLOADS="$CONFIG_DIR/wild-downloads"

# Preprocessing stuff, don't modify these until you know exactly
# what you're doing
#
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
PARENT_DIR=$(dirname "$SCRIPT_DIR")
XSL_TEMPLATE="$PARENT_DIR/share/leech/leech.xsl"
