freebsd-dev/release/picobsd/build/clean

43 lines
891 B
Plaintext
Raw Normal View History

1998-08-27 17:38:45 +00:00
#! /bin/sh -
#
1999-08-28 01:35:59 +00:00
# $FreeBSD$
1998-08-27 17:38:45 +00:00
#
set -e
TARGETS="dial net isp router bridge"
if [ $# -lt 1 ]; then
echo "What to clean? Possible targets are ${TARGETS} or 'all'"
exit 1
1998-08-27 17:38:45 +00:00
fi
if [ "$1" = "all" ]; then
list=${TARGETS}
old="old"
1998-08-27 17:38:45 +00:00
else
list=$1
old=$1
fi
if [ -f picobsd.bin ]; then
mv -f picobsd.bin picobsd.bin.${old}
1998-08-27 17:38:45 +00:00
fi
rm -f kernel kernel.gz fs.PICOBSD *.o *core *.db \
.build.reply stage1.out build.status .image.list
1998-08-27 17:38:45 +00:00
cd ..
rm -rf help/tmp_hlp
echo "===================== $0 tools started ===================="
for i in `ls -d tinyware/[a-z]*` ; do
(cd ${i}; \
if [ -f Makefile ]; then \
make clean && make cleandepend;\
fi)
done
for j in $list ; do
1998-08-27 17:38:45 +00:00
echo "===================== $0 $j started ======================"
(cd ${j}/crunch1; \
make -f ../../build/Makefile.crunch clean ; \
)
1998-08-27 17:38:45 +00:00
echo "=============== $0 $j completed successfuly =============="
done