+ [ -d ${3} ] || mkdir ${3}
+ cd ${3} && stagit-index
+ cp /usr/share/doc/stagit/style.css ${3}
+
+ while :; do
+ for dir in "${1}/*.git"; do
+ newdir=${3}/$(basename ${dir} .git)
+ [ -d ${newdir} ] || mkdir ${newdir}
+ cd ${newdir}
+ stagit ${dir}
+ find . -type f \( -name '*.html' -or -name '*.xml' \) | \
+ while read i ; do
+ minify ${i} > ${i}.tmp
+ mv ${i}.tmp ${i}
+ done
+ 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() {