diff --git a/cvsup/README b/cvsup/README new file mode 100644 index 0000000..99e0b98 --- /dev/null +++ b/cvsup/README @@ -0,0 +1,30 @@ +# $Id$ +# $Source$ + +This is my collection of tools to keep my OpenBSD sources up to date. It +works for any branch of ports and src. + +cvsup: + Script that does cvsup for me. Called from crontab like this: + 59 */3 * * * ~/bin/cvsup ports . + 59 */3 * * * ~/bin/cvsup src . + + +cvsup_filter: + Filter to be used with procmail. Called like this: + +------------------------------------- +:0HB: +* ^Subject:.*~/bin/cvsup +* ? $HOME/.procmail/cvsup_filter +# indien match op cvsup_filter, pleur weg (niets ge-cvsup-ed) +/dev/null + +:0: +* ^Subject:.*~/bin/cvsup +cvsup +------------------------------------- + +sup.tmpl: + Should be installed in ~/.cvsup and is a template for the cvsup + configurations the cvsup script generates. diff --git a/cvsup/cvsup_filter b/cvsup/cvsup_filter new file mode 100755 index 0000000..97ce54a --- /dev/null +++ b/cvsup/cvsup_filter @@ -0,0 +1,20 @@ +awk ' + BEGIN { + FIRST=0 + } + { + if(FIRST==1){ + if(match($0, "Shutting down connection to server")){ + print "matched ok" + exit 0 + } else { + print "not matched ok" + exit 1 + } + } else { + if(match($0, "Updating collection ")) { + FIRST=1 + next + } + } + }'