remove old stuff
This commit is contained in:
parent
08dc613fbb
commit
d7d0e381e0
7 changed files with 0 additions and 321 deletions
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
die () { echo "$*" >&2; exit 1; }
|
||||
askyn () { read ans?"$1 [y/n] "; if [ $ans == "y" ]; then return 0; else return 1;fi }
|
||||
|
||||
if [ $TERM != "screen" ]; then
|
||||
if (! askyn "You sure you don't want to run this in a screen session?" ); then
|
||||
die "Exiting...";
|
||||
fi
|
||||
fi
|
||||
|
||||
PATH=$PATH:/usr/sbin:/sbin
|
||||
export PATH
|
||||
|
||||
cd /usr/obj && mkdir -p .old && sudo mv * .old && sudo rm -rf .old &
|
||||
cd /usr/src && nice make obj || die "make obj failed"
|
||||
nice make build || die "make build failed"
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
#!/bin/sh
|
||||
die () { echo "$*" >&2; exit 1; }
|
||||
askyn () { read ans?"$1 [y/n] "; if [ $ans == "y" ]; then return 0; else return 1;fi }
|
||||
|
||||
if [ $TERM != "screen" ]; then
|
||||
if (! askyn "You sure you don't want to run this in a screen session?" ); then
|
||||
die "Exiting...";
|
||||
fi
|
||||
fi
|
||||
|
||||
export DATE=`cat ${HOME}/.cvsup/src_date`
|
||||
|
||||
export PATH=$PATH:/usr/sbin:/sbin
|
||||
export DESTDIR=/home/build/dest-$DATE
|
||||
export RELEASEDIR=/home/build/release-$DATE
|
||||
|
||||
cd /usr/src/distrib/crunch && make clean && make && make install
|
||||
test -d ${DESTDIR} && mv ${DESTDIR} ${DESTDIR}- && rm -rf ${DESTDIR}- &
|
||||
mkdir -p ${DESTDIR} ${RELEASEDIR}
|
||||
cd /usr/src/etc && nice make release || die "make release failed"
|
||||
cd /usr/src/distrib/sets && csh checkflist
|
||||
unset RELEASEDIR DESTDIR
|
||||
178
causal/causal.rb
178
causal/causal.rb
|
|
@ -1,178 +0,0 @@
|
|||
#!/usr/bin/ruby
|
||||
|
||||
# $Id: ruby 1708 2006-02-24 10:09:22Z ward $
|
||||
# $URL$
|
||||
|
||||
#
|
||||
# Copyright (c) 2006 Ward Wouts <ward@wouts.nl>
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software for any
|
||||
# purpose with or without fee is hereby granted, provided that the above
|
||||
# copyright notice and this permission notice appear in all copies.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
#
|
||||
|
||||
j1 = Array.new
|
||||
j2 = Array.new
|
||||
j3 = Array.new
|
||||
j4 = Array.new
|
||||
|
||||
class Juggler
|
||||
attr_writer :juggler
|
||||
attr_writer :color
|
||||
attr_writer :nodecolor
|
||||
attr_writer :offset
|
||||
def initialize
|
||||
@hands = [ "R", "L" ]
|
||||
@juggler = 0
|
||||
@offset = 0
|
||||
@throws = Array.new
|
||||
@starthand = "R"
|
||||
end
|
||||
|
||||
def draw
|
||||
(0..@throws.length).each{|x|
|
||||
drawnode(x)
|
||||
#p "#{x} #{@throws[x]}"
|
||||
if @throws[x].nil?
|
||||
next
|
||||
end
|
||||
if @throws[x].match(/p/)
|
||||
drawpass(x)
|
||||
else
|
||||
drawself(x)
|
||||
end
|
||||
}
|
||||
end
|
||||
|
||||
def drawnode(n)
|
||||
puts "\\pscircle#{@nodecolor ? "[linecolor=#{@nodecolor}]" : ""}(#{(n*2+0.5+@offset*2)},-#{@juggler*2+1}){0.4}"
|
||||
if @color
|
||||
puts "\\rput(#{(n*2+0.5+@offset*2)},-#{@juggler*2+1}){{\\color{#{@color}}#{@hands[n.modulo(2)]}}}"
|
||||
else
|
||||
puts "\\rput(#{(n*2+0.5+@offset*2)},-#{@juggler*2+1}){#{@hands[n.modulo(2)]}}"
|
||||
end
|
||||
end
|
||||
|
||||
def drawself(n)
|
||||
case @throws[n].to_f
|
||||
when 0 then puts "0"
|
||||
when 1 then puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2-0.1+@offset*2},-#{@juggler*2+1})(#{(n*2)-0.9+@offset*2},-#{@juggler*2+1}) % self j#{@juggler+1}"
|
||||
when 2 then
|
||||
if @juggler == 0
|
||||
puts "\\psecurve#{@color ? "[linecolor=#{@color}]" : ""}{->}" +
|
||||
"(#{n*2+0.5+@offset*2},-#{@juggler*2+1})" +
|
||||
"(#{n*2+0.1+@offset*2},-#{@juggler*2+0.6})" +
|
||||
"(#{n*2-0.1+@offset*2},-#{@juggler*2+0.4})" +
|
||||
"(#{n*2+0.5+@offset*2},-#{@juggler*2+0.1})" +
|
||||
"(#{n*2+1.1+@offset*2},-#{@juggler*2+0.4})" +
|
||||
"(#{n*2+0.9+@offset*2},-#{@juggler*2+0.6})" +
|
||||
"(#{n*2+0.5+@offset*2},-#{@juggler*2+1})"
|
||||
else
|
||||
puts "\\psecurve#{@color ? "[linecolor=#{@color}]" : ""}{->}" +
|
||||
"(#{n*2+0.5+@offset*2},-#{@juggler*2+1})" +
|
||||
"(#{n*2+0.1+@offset*2},-#{@juggler*2+1.4})" +
|
||||
"(#{n*2-0.1+@offset*2},-#{@juggler*2+1.6})" +
|
||||
"(#{n*2+0.5+@offset*2},-#{@juggler*2+1.9})" +
|
||||
"(#{n*2+1.1+@offset*2},-#{@juggler*2+1.6})" +
|
||||
"(#{n*2+0.9+@offset*2},-#{@juggler*2+1.4})" +
|
||||
"(#{n*2+0.5+@offset*2},-#{@juggler*2+1})"
|
||||
end
|
||||
when 3 then puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+1.1+@offset*2},-#{@juggler*2+1})(#{(n*2)+1.9+@offset*2},-#{@juggler*2+1}) % self j#{@juggler+1}"
|
||||
when 4 then
|
||||
if @juggler == 0
|
||||
puts "\\pscurve#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-0.6)(#{n*2+2.5},-0.4)(#{n*2+4.1+@offset*2},-0.6) % double self j#{@juggler+1}"
|
||||
else
|
||||
puts "\\pscurve#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-#{@juggler*2+1.4})(#{n*2+2.5+@offset*2},-#{@juggler*2+1.6})(#{n*2+4.1+@offset*2},-#{@juggler*2+1.4}) % double self j#{@juggler+1}"
|
||||
end
|
||||
when 5
|
||||
if @juggler == 0
|
||||
puts "\\pscurve#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-0.6)(#{n*2+3.5},-0.2)(#{n*2+6.1+@offset*2},-0.6) % triple self j#{@juggler+1}"
|
||||
else
|
||||
puts "\\pscurve#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-#{@juggler*2+1.4})(#{n*2+3.5+@offset*2},-#{@juggler*2+1.8})(#{n*2+6.1},-#{@juggler*2+1.4}) % triple self j#{@juggler+1}"
|
||||
end
|
||||
when 6
|
||||
if @juggler == 0
|
||||
puts "\\pscurve#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-0.6)(#{n*2+4.5},0)(#{n*2+8.1+@offset*2},-0.6) % quad self j#{@juggler+1}"
|
||||
else
|
||||
puts "\\pscurve#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-#{@juggler*2+1.4})(#{n*2+4.5+@offset*2},-#{@juggler*2+2})(#{n*2+8.1},-#{@juggler*2+1.4}) % quad self j#{@juggler+1}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def drawpass(n, to=nil)
|
||||
if @juggler == 0 and to.nil?
|
||||
to = 1
|
||||
elsif to.nil?
|
||||
to = @juggler - 1
|
||||
end
|
||||
case @throws[n]
|
||||
when "3p" then
|
||||
if to > @juggler
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9},-#{@juggler*2+1.4})(#{n*2+2.1},-#{@juggler*2+2.6}) % single pass j#{@juggler+1}"
|
||||
else
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9},-#{@juggler*2+0.6})(#{n*2+2.1},-#{@juggler*2-0.6}) % single pass j#{@juggler+1}"
|
||||
end
|
||||
when "3.5p" then
|
||||
if to > @juggler
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-#{@juggler*2+1.4})(#{n*2+3.1+@offset*2},-#{@juggler*2+2.6}) % single pass j#{@juggler+1}"
|
||||
else
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-#{@juggler*2+0.6})(#{n*2+3.1+@offset*2},-#{@juggler*2-0.6}) % single pass j#{@juggler+1}"
|
||||
end
|
||||
when "4p" then
|
||||
if to > @juggler
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-#{@juggler*2+1.4})(#{n*2+4.1+@offset*2},-#{@juggler*2+2.6}) % double pass j#{@juggler+1}"
|
||||
else
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-#{@juggler*2+0.6})(#{n*2+4.1+@offset*2},-#{@juggler*2-0.6}) % double pass j#{@juggler+1}"
|
||||
end
|
||||
when "4.5p" then
|
||||
if to > @juggler
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-#{@juggler*2+1.4})(#{n*2+5.1+@offset*2},-#{@juggler*2+2.6}) % double pass j#{@juggler+1}"
|
||||
else
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9+@offset*2},-#{@juggler*2+0.6})(#{n*2+5.1+@offset*2},-#{@juggler*2-0.6}) % double pass j#{@juggler+1}"
|
||||
end
|
||||
when "5p" then
|
||||
if to > @juggler
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9},-#{@juggler*2+1.4})(#{n*2+6.1},-#{@juggler*2+2.6}) % triple pass j#{@juggler+1}"
|
||||
else
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9},-#{@juggler*2+0.6})(#{n*2+6.1},-#{@juggler*2-0.6}) % triple pass j#{@juggler+1}"
|
||||
end
|
||||
when "6p" then
|
||||
if to > @juggler
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9},-#{@juggler*2+1.4})(#{n*2+8.1},-#{@juggler*2+2.6}) % quad pass j#{@juggler+1}"
|
||||
else
|
||||
puts "\\psline#{@color ? "[linecolor=#{@color}]" : ""}{->}(#{n*2+0.9},-#{@juggler*2+0.6})(#{n*2+8.1},-#{@juggler*2-0.6}) % quad pass j#{@juggler+1}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def pattern=(pat)
|
||||
@throws = pat.split(/ /)
|
||||
end
|
||||
end
|
||||
|
||||
class Jugglers
|
||||
end
|
||||
|
||||
j1 = Juggler.new
|
||||
#j1.pattern="4p 4 4 4p 4 4 4p"
|
||||
# 94674 start 67494
|
||||
j1.pattern="3 3.5p 2 4.5p 2 3 3.5p 2 4.5p 2"
|
||||
#j1.color = "darkgray"
|
||||
#j1.nodecolor = "darkgray"
|
||||
j1.draw
|
||||
|
||||
j2 = Juggler.new
|
||||
j2.juggler = 1
|
||||
#j2.pattern="4p 4 4 4p 4 4 4p"
|
||||
# 98274 start 27498
|
||||
j2.offset = 0.5
|
||||
j2.pattern="4.5p 4 1 3.5p 2 4.5p 4 1 3.5p 2"
|
||||
j2.draw
|
||||
30
cvsup/README
30
cvsup/README
|
|
@ -1,30 +0,0 @@
|
|||
# $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.
|
||||
46
cvsup/cvsup
46
cvsup/cvsup
|
|
@ -1,46 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id$
|
||||
# $Source$
|
||||
|
||||
die() { echo "$*" >&2; exit 1; }
|
||||
|
||||
export LOCKFILE=${HOME}/.cvsup/$1_lock
|
||||
export DATEFILE=${HOME}/.cvsup/$1_date
|
||||
|
||||
if ( [ ${#} -ne 2 ] ); then
|
||||
die "Usage: cvsup <tree> <branch>\n"
|
||||
fi
|
||||
|
||||
if ( [ -e $LOCKFILE ]); then
|
||||
LOCKPID=`cat $LOCKFILE`
|
||||
if ( ! ps -p $LOCKPID|egrep -q "$LOCKPID" ); then
|
||||
echo "Stale lockfile found: $LOCKFILE"
|
||||
rm $LOCKFILE
|
||||
else
|
||||
if ( ! [ -z "$PS1" ] ); then
|
||||
echo "already running..."
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DATE=`perl -e '
|
||||
@time = localtime(time - 14400); # vier uur geleden
|
||||
$time[4]++;
|
||||
$time[5]+=1900;
|
||||
if (length("$time[4]")<2) { $time[4]="0$time[4]"; }
|
||||
if (length("$time[3]")<2) { $time[3]="0$time[3]"; }
|
||||
if (length("$time[2]")<2) { $time[2]="0$time[2]"; }
|
||||
if (length("$time[1]")<2) { $time[1]="0$time[1]"; }
|
||||
if (length("$time[0]")<2) { $time[0]="0$time[0]"; }
|
||||
print "$time[5].$time[4].$time[3].$time[2].$time[1].$time[0]\n";
|
||||
'`
|
||||
|
||||
sed -e "s/\%\%date\%\%/$DATE/" -e "s/\%\%tree\%\%/$1/" -e "s/\%\%branch\%\%/$2/" ${HOME}/.cvsup/sup.tmpl > ${HOME}/.cvsup/$1.sup
|
||||
echo $DATE > $DATEFILE
|
||||
|
||||
echo $$ > $LOCKFILE
|
||||
umask 002
|
||||
/usr/local/bin/cvsup -g -L 2 ${HOME}/.cvsup/$1.sup
|
||||
rm $LOCKFILE
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
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
|
||||
}
|
||||
}
|
||||
}'
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
# Defaults that apply to all the collections
|
||||
*default host=cvsup.no.openbsd.org
|
||||
*default base=/var
|
||||
*default prefix=/usr
|
||||
*default release=cvs
|
||||
*default delete use-rel-suffix compress
|
||||
|
||||
# Ports Collection.
|
||||
OpenBSD-%%tree%% tag=%%branch%% date=%%date%%
|
||||
Loading…
Add table
Add a link
Reference in a new issue