import cinit from unix.schottelius.org

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-09-16 12:53:45 +02:00
commit 423ba10303
13396 changed files with 269468 additions and 0 deletions

View file

@ -0,0 +1 @@
Only to be used by Nico Schottelius.

View file

@ -0,0 +1,15 @@
#!/bin/sh
# yah - yet another hack
host="$1"
hier=$(dirname $0)
$hier/compile_test.sh "$1"
if [ $? -ne 0 ]; then
echo "aborting, did not compile on $1"
exit 1
fi
ssh "${host}" './cinit/src/cinit & (sleep 30; kill -9 $(pgrep cinit))'

View file

@ -0,0 +1,24 @@
# just a hack
dir=$(dirname $0)
sys=$(uname -s)
sys_small=$(echo $sys | tr '[A-Z]' '[a-z]')
case $(uname -s) in
NetBSD|OpenBSD)
make=gmake
;;
*)
make=make
;;
esac
cd "${dir}/../../"
echo $sys_small > conf/os
# automatically called by make..
#./bin/cinit.configure.os
cd "src"
$make clean
$make cinit

View file

@ -0,0 +1,8 @@
#!/bin/sh
# yah - yet another hack
host="$1"
what=$(dirname $0)/../../
rsync --exclude .git --exclude \*.o -av "${what}" "${host}:cinit"
ssh "${host}" "./cinit/scripts/internal/compile_local.sh"

View file

@ -0,0 +1,18 @@
hier=$(dirname $0)
set -e
${hier}/../cinit.install.standard.dirs
cat > /etc/cinit/svc/init/on << eof
#!/bin/sh
echo test1
sleep 4
echo test2 - \$@
eof
chmod 0755 /etc/cinit/svc/init/on
cat > /etc/cinit/svc/init/on.params << eof
es
scheint
zu
gehen
eof

View file

@ -0,0 +1,24 @@
#!/bin/sh
src="$(dirname $0)/../../"
src_abs=$(cd "$src" && pwd -P)
for commit in $( git log --pretty=short | awk '/^commit/ { print $2 }'); do
set -e
cd "$src_abs"
temp=$(mktemp -d /tmp/cinit.XXXXXXXXXX)
git-archive --format=tar "$commit" | ( cd "$temp"; tar x )
cd "${temp}/src"
set +e
make clean && make cinit && ./cinit
if [ "$?" -eq 0 ]; then
echo "Commit $commit is ok"
exit 0
fi
echo "Broken $commit"
sleep 1
set -e
rm -rf "$temp"
done
exit 1

View file

@ -0,0 +1,12 @@
#!/bin/sh
# yah
hosts="penrose.bsdprojects.net bot.unixkiste.org suckz.eu"
set -e
for host in $hosts; do
echo "$1 on $host"
"$1" "$host" | sed "s/^/${host}: /"
echo "==> Finished $host"
done

View file

@ -0,0 +1 @@
valgrind -v --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes --leak-resolution=high ./cinit