Commit 02117f59 authored by Manuel Moos's avatar Manuel Moos
Browse files

Use XDG compliant cache directory

Fixes #43
parent 230410a4
Pipeline #235919177 passed with stages
in 50 minutes and 28 seconds
......@@ -19,8 +19,9 @@ extralib=
if test "x${LD_DEBUG_APP}" = xtrue; then
echo "Library debug mode: ignore system libraries."
else
CACHE=~/.${EXEC}/.syslibs
mkdir -p ~/.${EXEC}
CACHE_DIR=${XDG_CACHE_HOME:-~/.cache}/${EXEC}
CACHE=${CACHE_DIR}/syslibs
mkdir -p ${CACHE_DIR}
if test ! -e ${CACHE} || test "${0}" -nt ${CACHE}; then
# find all directories in ld's cache
for lib in $({ /sbin/ldconfig -p || ldconfig -p; } | tail -n +2 | sed -e "s,.* =>,," -e "s,/[^/]*$,," | sort -u); do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment