]> git.decadent.org.uk Git - dak.git/blob - scripts/debian/update-bugdoctxt
Re-enable source-contains-waf-binary now that #661561 is fixed.
[dak.git] / scripts / debian / update-bugdoctxt
1 #!/bin/sh -e
2
3 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
4 . $SCRIPTVARS
5
6 export TERM=linux
7
8 destdir=$ftpdir/doc
9 urlbase=http://www.debian.org/Bugs/
10
11 cd $destdir
12
13 convert () {
14         src=$1; dst=$2
15         rm -f .new-$dst
16         echo Generating $dst from http://www.debian.org/Bugs/$src ...
17         lynx -nolist -dump $urlbase$src | sed -e 's/^ *$//' | perl -00 -ne 'exit if /Back to the Debian Project homepage/; print unless ($.==1 || $.==2 || $.==3 || /^\s*Other BTS pages:$/m)' >.new-$dst
18         if cmp -s .new-$dst $dst ; then rm -f .new-$dst
19         else mv -f .new-$dst $dst
20         fi
21 }
22
23 convert Reporting.html bug-reporting.txt
24 convert Access.html bug-log-access.txt
25 convert server-request.html bug-log-mailserver.txt
26 convert Developer.html bug-maint-info.txt
27 convert server-control.html bug-maint-mailcontrol.txt
28 convert server-refcard.html bug-mailserver-refcard.txt