minix/tools/chrootmake.sh

25 lines
494 B
Bash
Raw Normal View History

2005-04-21 16:53:53 +02:00
#!/bin/sh
set -e
export SHELL=/bin/sh
2006-04-12 13:32:49 +02:00
cd /usr/src
if [ $# -gt 0 ]
then make $@
exit $?
fi
CC=clang make world
2006-04-12 13:32:49 +02:00
cd tools
rm revision
rm -rf /boot/minix/* # on old systems might not be present
2012-01-30 14:40:16 +01:00
CC=clang make install
cp ../sys/arch/i386/stand/boot/biosboot/boot_monitor /
cp -rf /boot/minix/* /boot/minix_default
2006-04-12 13:32:49 +02:00
cd /usr/src
if [ $MAKEMAP -ne 0 ]; then
find . -type f -perm 755 | xargs nm -n 2> /dev/null > symbols.txt
fi
make clean
make cleandepend
find . -name 'obj-*' -type d|xargs rm -rf