#!/bin/bash #This script pulls the latest WINE ANNOUNCE file from CVS and reads the changelog lines from it. ANNOUNCEURL="http://cvs.winehq.org/cvsweb/~checkout~/wine/ANNOUNCE?content-type=text/plain&only_with_tag=MAIN" GREPAFTER="What's new" GREPBEFORE="Because of lags" ANNOUNCEFILE=/tmp/ANNOUNCE AFILE=/tmp/ANNOUNCEA BFILE=/tmp/ANNOUNCEB wget -q $ANNOUNCEURL -O $ANNOUNCEFILE grep "$GREPAFTER" $ANNOUNCEFILE -A 20 > $AFILE grep "$GREPBEFORE" $ANNOUNCEFILE -B 20 > $BFILE cat $AFILE $BFILE | sort -d -r | uniq -d | grep -v "$GREPBEFORE" | grep -v "$GREPAFTER" #head -$((`cat $CFILE | wc -l`-1)) $CFILE rm $ANNOUNCEFILE $AFILE $BFILE exit 1