ref updates: switch from ref-change to ref-changes
[girocco.git] / bin / run-format-readme.sh
blob126a9af3b582f9e947ca19bc68b395c143d9b6bc
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 img="${base%/}/blob_plain/HEAD:"
14 base="${base%/}/blob/HEAD:"
16 PATH="$var_git_exec_path:$cfg_basedir/bin:/usr/bin:$PATH"
17 export PATH
19 exec "$cfg_basedir/bin/format-readme" -p "$base" -i "$img" "$@"