1
0
Fork 0

hashcache will now take into account path_root when determining cache location

tpl
Mike Gerwitz 2013-06-02 11:54:58 -04:00
parent e69f16e908
commit d14eda464e
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@
# intended to be configured from a configuration file; lowercase to help
# mitigate global env var conflicts
cachefile="${hashcache:-.hashcache}"
cachefile="${hashcache:-${path_root:+$path_root/}.hashcache}"
# 'cause it rhymes and 'cause it's useful
_cache()

View File

@ -53,7 +53,7 @@ else
fi
# store our cwd and enter our own (to make invoking relative scripts easier)
path_root="$( pwd )"
export path_root="$( pwd )"
path_out="$path_root"
path="$( dirname "$0" )"
cd "$path"
@ -145,7 +145,7 @@ export msgfmt_default=./msgfmt
msgfmt="${msgfmt:-$default}"
# make configuration available to all scripts
export title desc copyright license msgfmt url_root path_tpl path path_root \
export title desc copyright license msgfmt url_root path_tpl path \
html_external_css html_footer html_index_footer html_commit_footer \
html_ext html_pre_index html_body_class html_tsep repo_url repo_commit_url