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
|
|
|
|
|
2000-07-01 04:40:01 +00:00
|
|
|
TARGETS="dial net isp router bridge"
|
1999-08-23 08:33:08 +00:00
|
|
|
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
|
|
|
|
|
1999-08-23 08:33:08 +00:00
|
|
|
if [ "$1" = "all" ]; then
|
|
|
|
list=${TARGETS}
|
|
|
|
old="old"
|
1998-08-27 17:38:45 +00:00
|
|
|
else
|
1999-08-23 08:33:08 +00:00
|
|
|
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
|
|
|
|
|
1999-08-23 08:33:08 +00:00
|
|
|
rm -f kernel kernel.gz fs.PICOBSD *.o *core *.db \
|
2000-07-01 13:51:22 +00:00
|
|
|
.build.reply stage1.out build.status .image.list
|
1998-08-27 17:38:45 +00:00
|
|
|
cd ..
|
1998-09-07 19:00:34 +00:00
|
|
|
rm -rf help/tmp_hlp
|
1998-09-29 11:58:54 +00:00
|
|
|
echo "===================== $0 tools started ===================="
|
2000-02-08 08:25:00 +00:00
|
|
|
for i in `ls -d tinyware/[a-z]*` ; do
|
1998-09-29 11:58:54 +00:00
|
|
|
(cd ${i}; \
|
1999-08-23 08:33:08 +00:00
|
|
|
if [ -f Makefile ]; then \
|
2000-02-08 08:25:00 +00:00
|
|
|
make clean && make cleandepend;\
|
1998-09-29 11:58:54 +00:00
|
|
|
fi)
|
|
|
|
done
|
1999-08-23 08:33:08 +00:00
|
|
|
for j in $list ; do
|
1998-08-27 17:38:45 +00:00
|
|
|
echo "===================== $0 $j started ======================"
|
1998-09-29 11:58:54 +00:00
|
|
|
(cd ${j}/crunch1; \
|
2000-02-08 08:25:00 +00:00
|
|
|
make -f ../../build/Makefile.crunch clean ; \
|
|
|
|
)
|
1998-08-27 17:38:45 +00:00
|
|
|
echo "=============== $0 $j completed successfuly =============="
|
|
|
|
done
|