freebsd-nq/release/picobsd/build/clean
Andrzej Bialecki d3f8852a1b Minor fixes to 'clean' script.
Changed the 'build' script to use ../${TYPE}/conf/Makefile in order to
have true dependency of kernel image on the kernel config file.
1998-09-03 10:40:27 +00:00

34 lines
657 B
Bash
Executable File

#! /bin/sh -
#
# $Id: clean,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $
#
set -e
if [ $# -lt 1 ]
then
echo "What to clean? Possible targets are 'dial', 'net', 'isp', 'router' or 'all'"
exit 1
fi
if [ "$1" = "all" ]
then
list="dial net isp router"
else
list=$1
fi
rm -f kernel kernel.kz fs.PICOBSD picobsd.bin *.o *core *.db
rm -f picobsd.bin
cd ..
for j in $list
do
echo "===================== $0 $j started ======================"
for i in `ls -d tinyware/[a-z]*` tools/write_mfs_in_kernel tools/dumpnlist ${j}/crunch1
do
(cd ${i} && make clean && make cleandepend)
done
echo "=============== $0 $j completed successfuly =============="
done