+ [ -d ${3} ] || mkdir ${3}
+ stagit-index ./* > ${3}/index.html
+ cp /usr/share/doc/stagit/style.css ${3}
+
+ while :; do
+ find ${1} -maxdepth 2 -name '*.git' | \
+ while read dir; do
+ newdir=${3}/$(basename ${dir} .git)
+ [ -d ${newdir} ] || mkdir ${newdir}
+ cd ${newdir}
+ stagit ${dir}
+ cp /usr/share/doc/stagit/style.css .
+ git -C ${dir} fetch --tags
+ echo $(date -Iseconds) ' | ' ${dir} | tee -a ${2}
+ echo $(tail -n 1500 ${2}) > ${2}
+ done
+ sleep 600
+ done
+}
+
+gen_url() {