All pastes #433439 Raw Edit

leon

public text v1 · immutable
·published 2007-04-10 20:11 UTC
rendered paste body
#!/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/ANNOUNCEAFILE=/tmp/ANNOUNCEABFILE=/tmp/ANNOUNCEBwget -q $ANNOUNCEURL -O $ANNOUNCEFILEgrep "$GREPAFTER" $ANNOUNCEFILE -A 20 > $AFILEgrep "$GREPBEFORE" $ANNOUNCEFILE -B 20 > $BFILEcat $AFILE $BFILE | sort -d -r | uniq -d | grep -v "$GREPBEFORE" | grep -v "$GREPAFTER"#head -$((`cat $CFILE | wc -l`-1)) $CFILErm $ANNOUNCEFILE $AFILE $BFILEexit 0