"
diff --git a/repo2html b/repo2html
index 17206f3..159bafb 100755
--- a/repo2html
+++ b/repo2html
@@ -47,12 +47,13 @@ cwarn()
# configuration (note that this setup in conjunction with the below defaults
# imply that they can be passed in as environment variables as an alternative to
# options)
-while getopts t:d:c:l: opt; do
+while getopts t:d:c:l:f: opt; do
case "$opt" in
t) title="$OPTARG";;
d) desc="$OPTARG";;
c) copyright="$OPTARG";;
l) license="$OPTARG";;
+ f) msgfmt="$OPTARG";;
?) exit 64;;
esac
done
@@ -70,8 +71,11 @@ desc="${desc:-$( cwarn description )}"
copyright="${copyright:-$( cwarn copyright 'Respective Authors' )}"
license="${license:-$( cwarn license )}"
+# provide default message formatter if necessary
+msgfmt="${msgfmt:-./msgfmt}"
+
# make configuration available to all scripts
-export title desc copyright license
+export title desc copyright license msgfmt
# pass commit list to the HTML and RSS processors
"$repotype"/list | tee \
diff --git a/rss b/rss
index 0caac1d..1ed7dae 100755
--- a/rss
+++ b/rss
@@ -24,6 +24,9 @@ repotype="${1?Missing repository type}"
url="${2?Missing URL}"
count=10
+# provide default message formatter if necessary
+msgfmt="${msgfmt:-./msgfmt}"
+
# rss header
cat <
@@ -51,7 +54,7 @@ while read hash commit ts id subject; do
# the title)
cat <
-
+
$(
printf "%s/%s/%s.html" \
"${url/%\/}" "$( ./tsdate "$ts" %Y/%m )" "$id"