X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fion-completeman.in;h=135efaf248dc5855e06103b22c66c3df98670c71;hb=f869221ce49f0fb7cca48eee28daff8684305963;hp=969839bbddb452c217e730561fadb34181442063;hpb=de22e45179cb3bafa490294d31d47f361047a30a;p=ion3.git diff --git a/utils/ion-completeman.in b/utils/ion-completeman.in index 969839b..135efaf 100644 --- a/utils/ion-completeman.in +++ b/utils/ion-completeman.in @@ -107,15 +107,15 @@ if test "x$HOME" != x; then 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 @@ -136,7 +136,7 @@ case "$action" in fi ;; mksyscache) - mkdir -p "@VARDIR@" + mkdir -p "$vardir" scan > "$syscache" ;; esac