From d14eda464ef29673c259d9958b66a20e00d57e08 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 2 Jun 2013 11:54:58 -0400 Subject: [PATCH] hashcache will now take into account path_root when determining cache location --- hashcache | 2 +- repo2html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hashcache b/hashcache index b0a3879..b9585e0 100755 --- a/hashcache +++ b/hashcache @@ -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() diff --git a/repo2html b/repo2html index 0fc6af8..1ab4382 100755 --- a/repo2html +++ b/repo2html @@ -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