indextext.html: update notice about ssh host key change
[girocco.git] / bin / run-format-readme.sh
blob97d647f8ad230d9c3bc33dd7f58eae5c6c45f36f
1 #!/bin/sh
3 set -e
5 . @basedir@/shlib.sh
7 base="${1#$cfg_reporoot}"
8 base="${base#/}"
9 base="${base%/}"
10 base="${cfg_gitweburl%/}/$base"
11 base="${base#*://}"
12 base="/${base#*/}"
13 fp="${base%/}"
14 img="${base%/}/blob_plain/HEAD:"
15 base="${base%/}/blob/HEAD:"
16 max="${cfg_max_readme_size}"
18 PATH="$var_git_exec_path:$cfg_basedir/bin:/usr/bin:$PATH"
19 export PATH
21 exec "$cfg_basedir/bin/format-readme" -e ${max:+-m} $max -b "$fp" -p "$base" -i "$img" "$@"