full commit
[propaganda-bots.git] / docgen / docgen.sh
blob18d891e787ab607a28fe9e6aade7ed9fc85e4d43
1 #!/bin/bash
3 area=$1
5 while read p; do
6 section=`echo ${p//[[:blank:]]/} | tr '[:upper:]' '[:lower:]'`
8 section=`echo $section | cut -d'/' -f1`
10 echo " $p <${area}/${section}>" >> ${area}.rst
11 echo $p > ${area}/${section}.rst
13 N=${#p}
14 myvar=`perl -e "print '=' x $N;"`
15 echo $myvar >> ${area}/${section}.rst
16 done <${area}.list