usercache="$HOME/.ion3/mancache"
fi
-syscache="@VARDIR@/mancache"
+vardir=${ION_VAR_PATH-@VARDIR@}
+syscache="$vardir/mancache"
+
case "$action" in
complete)
if test "x$usercache" != x -a -f "$usercache"; then
cachefile="$usercache"
- fi
-
- if test -f "$syscache"; then
+ elif test -f "$syscache"; then
cachefile="$syscache"
fi
fi
;;
mksyscache)
- mkdir -p "@VARDIR@"
+ mkdir -p "$vardir"
scan > "$syscache"
;;
esac