5 echo "Usage: git-mirror [path to repos] [path to log file] [html directory]"
6 echo "relative paths are not supported."
11 [ -z ${3} ] && echo "not enough arguments" && exit 1
12 [ -z $(which stagit) ] && echo "please install stagit" && exit 1
16 [ -d ${3} ] || mkdir ${3}
17 stagit-index ./* > ${3}/index.html
18 cp /usr/share/doc/stagit/style.css ${3}
21 find ${1} -maxdepth 2 -name '*.git' | \
23 newdir=${3}/$(basename ${dir} .git)
24 [ -d ${newdir} ] || mkdir ${newdir}
27 cp /usr/share/doc/stagit/style.css .
29 echo $(date -Iseconds) ' | ' ${dir} | tee -a ${2}
30 echo $(tail -n 1500 ${2}) > ${2}