libiso8601/scripts/paths

59 lines
1.3 KiB
Bash

# libiso8601/scripts/paths
# vim: syntax=sh:sw=4:ts=4:expandtab
#
# Default path setup. Not meant for editing; use environment variables
# to override values if needed.
#
case "${PREFIX}" in
/)
BINDIR="/bin"
SBINDIR="/sbin"
LIBDIR="/lib"
INCLUDEDIR="/usr/include"
CONFIGDIR="/etc"
VARDIR="/var"
SHAREDIR="/usr/share/libiso8601"
DOCSDIR="/usr/share/doc/libiso8601"
WEBDIR="/srv/http"
;;
/usr)
BINDIR="/usr/bin"
SBINDIR="/usr/sbin"
LIBDIR="/usr/lib"
INCLUDEDIR="/usr/include"
CONFIGDIR="/etc"
VARDIR="/var"
SHAREDIR="/usr/share/libiso8601"
DOCSDIR="/usr/share/doc/libiso8601"
WEBDIR="/srv/http"
;;
/usr/local)
BINDIR="/usr/local/bin"
SBINDIR="/usr/local/sbin"
LIBDIR="/usr/local/lib"
INCLUDEDIR="/usr/local/include"
CONFIGDIR="/usr/local/etc"
VARDIR="/var"
SHAREDIR="/usr/local/share/libiso8601"
DOCSDIR="/usr/local/share/doc/libiso8601"
WEBDIR="/srv/http"
;;
/opt/*)
BINDIR="${PREFIX}/bin"
SBINDIR="${PREFIX}/sbin"
LIBDIR="${PREFIX}/lib"
INCLUDEDIR="${PREFIX}/include"
CONFIGDIR="/etc${PREFIX}"
VARDIR="/var${PREFIX}"
SHAREDIR="/var${PREFIX}"
DOCSDIR="${PREFIX}/doc"
WEBDIR="${PREFIX}/http"
;;
esac
CGIDIR="${WEBDIR}/cgi-bin"