Dont reindex already indexed files. Yet another bug uncovered by the DateTime fixes.
[beagle.git] / doc / fixme.sh
blob9ed275e62a0c1dbb204946ef2d9fac0bcc0cb67b
1 #!/bin/sh
3 # Autogenerate http://nat.org/beagle-fixmes.php3
6 BEAGLE_DIR=/home/nat/cvs/beagle
7 URL_PREFIX="http://cvs.gnome.org/viewcvs/beagle/"
8 EXCLUDE_LIST="fixme.sh\|ltmain.sh"
10 cd $BEAGLE_DIR
11 timestamp=`date`
13 echo "<?"
14 echo " \$title = \"beagle FIXMEs\";"
15 echo " include (\"path.php3\");"
16 echo " nat_inc (\"nat-header.php3\");"
17 echo "?>"
18 echo
19 echo "<table border=0 align=left width=100%><tr><td>"
20 echo "<h3>Automatically generated at $timestamp.</h3>"
21 echo "<br><tt>"
23 # Get list of FIXMEs
24 find . |grep "\(\.\(c\|h\|cs\|txt\|sh\)\|Makefile.am\)$" |xargs grep -n FIXME |grep -v $EXCLUDE_LIST |sed "s/\.\///g" | (
25 while true
27 read fixme
29 if [ "x$fixme" = "x" ]
30 then
31 exit
34 path=`echo "$fixme" |cut -d: -f 1`
35 line=`echo "$fixme" |cut -d: -f 2`
36 rest=`echo "$fixme" |cut -d: -f 3-`
38 url="$URL_PREFIX/$path?view=markup#$line"
40 echo "<a href=\"$url\">$path:$line</a>&nbsp;&nbsp;$rest<br>"
42 done
45 echo "</tt>"
46 echo "</td></tr></table>"
47 echo "<? "
48 echo " nat_inc (\"nat-plain-footer.php3\");"
49 echo "?>"