diff --git a/build/build.sh b/build/build.sh deleted file mode 100755 index 8b16d1c..0000000 --- a/build/build.sh +++ /dev/null @@ -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" diff --git a/build/release.sh b/build/release.sh deleted file mode 100755 index f4b074a..0000000 --- a/build/release.sh +++ /dev/null @@ -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 diff --git a/causal/causal.rb b/causal/causal.rb deleted file mode 100755 index f25337e..0000000 --- a/causal/causal.rb +++ /dev/null @@ -1,178 +0,0 @@ -#!/usr/bin/ruby - -# $Id: ruby 1708 2006-02-24 10:09:22Z ward $ -# $URL$ - -# -# Copyright (c) 2006 Ward Wouts -# -# 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 diff --git a/cvsup/README b/cvsup/README deleted file mode 100644 index 99e0b98..0000000 --- a/cvsup/README +++ /dev/null @@ -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. diff --git a/cvsup/cvsup b/cvsup/cvsup deleted file mode 100755 index c599c69..0000000 --- a/cvsup/cvsup +++ /dev/null @@ -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 \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 diff --git a/cvsup/cvsup_filter b/cvsup/cvsup_filter deleted file mode 100755 index 97ce54a..0000000 --- a/cvsup/cvsup_filter +++ /dev/null @@ -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 - } - } - }' diff --git a/cvsup/sup.tmpl b/cvsup/sup.tmpl deleted file mode 100644 index 4877964..0000000 --- a/cvsup/sup.tmpl +++ /dev/null @@ -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%%