more junk
This commit is contained in:
parent
80fdea4a8f
commit
65e53a6f87
2 changed files with 50 additions and 0 deletions
30
cvsup/README
Normal file
30
cvsup/README
Normal file
|
|
@ -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.
|
||||||
20
cvsup/cvsup_filter
Executable file
20
cvsup/cvsup_filter
Executable file
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue