From d117372ea9e11b3a30b97b06c0842cfe4b576ad9 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 21 May 2013 22:38:32 -0400 Subject: [PATCH] Added -o option for output directory override --- repo2html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/repo2html b/repo2html index 0630b99..b674c55 100755 --- a/repo2html +++ b/repo2html @@ -98,6 +98,14 @@ while getopts t:d:c:e:l:f:o:C:ER:T: opt; do e) html_ext="$OPTARG";; l) license="$OPTARG";; f) msgfmt="$OPTARG";; + o) + # recognize both absolute and relative paths + if [ "${OPTARG:0:1}" == / ]; then + path_out="$OPTARG" + else + path_out="$path_out/$OPTARG" + fi + ;; C) html_external_css="$OPTARG";; E) html_ext=;; R) rss_count="$OPTARG";;