bugscan now uses basename
[bugscan.git] / z
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. Please send comments to
15 bugscan@debian.org .
16 EOF
17
18 cat posts/post-$now | \
19         mutt \
20                 -e "my_hdr Reply-To: debian-devel@lists.debian.org,bugscan\@debian.org" \
21                 -e "my_hdr From: BugScan reporter <bugscan\@debian.org>" \
22                 -s "Release-critical Bugreport for `date +'%B %e, %Y'`" \
23                 debian-devel-announce@lists.debian.org
24