Ignore:
Timestamp:
Oct 8, 2006, 12:11:38 PM (14 years ago)
Author:
Bruno Cornec
Message:

merge -r881:884 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0/tools/mkannounce

    r763 r885  
    3232SEARCH=`echo $VER | cut -c2-`
    3333
    34 rm -f $TMP/announce.tmp
    35 cat > $TMP/announce.tmp << EOF
     34rm -f $MONDOTMP/announce.tmp
     35cat > $MONDOTMP/announce.tmp << EOF
    3636MondoRescue $VER is now available</p>
    3737
     
    4343<p>
    4444EOF
    45 ssh ${ACCOUNT} "cd $DSTDIR ; find . -name 'm[oi]nd[io]-[0-9]$SEARCH*'" | grep -v 'src.rpm' >> $TMP/announce.tmp
    46 cat >> $TMP/announce.tmp << EOF
     45ssh ${ACCOUNT} "cd $DSTDIR ; find . -name 'm[oi]nd[io]-[0-9]$SEARCH*'" | grep -v 'src.rpm' >> $MONDOTMP/announce.tmp
     46cat >> $MONDOTMP/announce.tmp << EOF
    4747</p>
    4848
     
    5555
    5656# Generating log files
    57 $TOOLHOME/mkchangelog.pl announce mindi $TMP/mindi.ann
    58 $TOOLHOME/mkchangelog.pl announce mondo $TMP/mondo.ann
    59 echo "<p>" >> $TMP/announce.tmp
    60 sed 's/$/<br>/' $TMP/mindi.ann >> $TMP/announce.tmp
    61 echo "</p><p>" >> $TMP/announce.tmp
    62 sed 's/$/<br>/' $TMP/mondo.ann >> $TMP/announce.tmp
    63 echo "</p>" >> $TMP/announce.tmp
    64 rm -f $TMP/mindi.ann $TMP/mondo.ann
     57$TOOLHOME/mkchangelog.pl announce mindi $MONDOTMP/mindi.ann
     58$TOOLHOME/mkchangelog.pl announce mondo $MONDOTMP/mondo.ann
     59echo "<p>" >> $MONDOTMP/announce.tmp
     60sed 's/$/<br>/' $MONDOTMP/mindi.ann >> $MONDOTMP/announce.tmp
     61echo "</p><p>" >> $MONDOTMP/announce.tmp
     62sed 's/$/<br>/' $MONDOTMP/mondo.ann >> $MONDOTMP/announce.tmp
     63echo "</p>" >> $MONDOTMP/announce.tmp
     64rm -f $MONDOTMP/mindi.ann $MONDOTMP/mondo.ann
    6565
    66 vi $TMP/announce.tmp
     66vi $MONDOTMP/announce.tmp
    6767# Store it in DB for Web pages generation
    68 $TOOLHOME/mkannounce.pl $TMP/announce.tmp
     68$TOOLHOME/mkannounce.pl $MONDOTMP/announce.tmp
    6969# Then deliver it on the Web
    7070$TOOLHOME/livwww www
    71 cat > $TMP/announce.hdr << EOF
     71cat > $MONDOTMP/announce.hdr << EOF
    7272<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd">
    7373
     
    7878  <p>
    7979EOF
    80 cat > $TMP/announce.ftr << EOF
     80cat > $MONDOTMP/announce.ftr << EOF
    8181</body>
    8282</html>
    8383EOF
    8484# Mail it to mr ML
    85 cat $TMP/announce.hdr $TMP/announce.tmp $TMP/announce.ftr | w3m -dump -T text/html > $TMP/mondo.ann.txt
     85cat $MONDOTMP/announce.hdr $MONDOTMP/announce.tmp $MONDOTMP/announce.ftr | w3m -dump -T text/html > $MONDOTMP/mondo.ann.txt
    8686export EMAIL="bruno@mondorescue.org"
    87 export TMPDIR=$TMP
    88 cat $TMP/mondo.ann.txt | mutt -s "`head -1 $TMP/mondo.ann.txt`" mondo-devel@lists.sourceforge.net -c mondorescue-announce@lists.berlios.de
    89 rm -rf $TMP
     87cat $MONDOTMP/mondo.ann.txt | mutt -s "`head -1 $MONDOTMP/mondo.ann.txt`" mondo-devel@lists.sourceforge.net -c mondorescue-announce@lists.berlios.de
     88rm -rf $MONDOTMP
Note: See TracChangeset for help on using the changeset viewer.