bugscan now uses basename
[bugscan.git] / dopost
1 #! /bin/sh
2
3 cd /org/bugs.debian.org/bugscan
4
5 rm pstatus-old
6 mv pstatus pstatus-old
7 now=`ls -al status | sed -e 's/.*-\([0-9]*\)/\1/'`
8 ln -s stati/status-$now pstatus
9
10 ./makepost > posts/post-$now
11
12 cat <<EOF >> posts/post-$now
13 -- 
14 This post is automatically generated on a regular basis.
15 Up-to-date information available at http://bugs.debian.org/release-critical/
16 Please send comments to bugscan@debian.org
17 EOF
18
19 cat posts/post-$now | \
20         mutt \
21                 -e "my_hdr Reply-To: debian-devel@lists.debian.org,bugscan\@debian.org" \
22                 -e "my_hdr From: BugScan reporter <bugscan\@debian.org>" \
23                 -e "set send_charset='us-ascii:utf-8'" \
24                 -e "set charset='utf-8'" \
25                 -s "Release-critical Bugreport for `date +'%B %e, %Y'`" \
26                 debian-devel-announce@lists.debian.org
27