1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtdocbook: remove hardcoded /usr/dt.

This commit is contained in:
Liang Chang 2021-12-12 09:38:16 +08:00
parent 3acbed6bc9
commit a0ac8c06bf
2 changed files with 13 additions and 3 deletions

View file

@ -88,11 +88,21 @@ do
done
default_charset='UTF-8'
dbk_lib="${dbk_lib:-/usr/dt/dthelp/dtdocbook}" # if no -t, use installed dir
pkg_dbk='cde-desktop/dtdocbook'
# if no -t, use installed dir
if [[ "$dbk_lib" = "" ]] then
dbk_lib="$(cd -P -- "$(dirname -- "$(command -v -- "$0")")" && pwd -P)"
dbk_lib="${dbk_lib}/../share/${pkg_dbk}"
fi
# if no -I, use installed one
instant="${instant:-${dbk_lib}/../../../libexec/${pkg_dbk}/instant}"
sgml_dir="${sgml_dir:-${dbk_lib}/sgml}" # if no -s, use -t
sgml_cat="${sgml_dir}"
sgmls="${sgmls:-onsgmls}" # if no -S, use onsgmls
instant="${instant:-${dbk_lib}/instant}" # if no -I, use installed one
x_locale="${x_locale:-${LANG}}" # if no -L, use installed one
helptag2="${helptag2:-dthelp_htag2}" # if no -H, use one in PATH

View file

@ -1,6 +1,6 @@
MAINTAINERCLEANFILES = Makefile.in
noinst_PROGRAMS = instant
pkglibexec_PROGRAMS = instant
instant_CFLAGS = -I../lib/tptregexp $(DT_INCDIR)