1998-08-27 17:38:45 +00:00
|
|
|
#! /bin/sh -
|
|
|
|
|
|
|
|
#
|
1999-08-23 08:33:08 +00:00
|
|
|
# $Id: clean,v 1.9 1999/08/22 21:42:30 dwhite Exp $
|
1998-08-27 17:38:45 +00:00
|
|
|
#
|
|
|
|
set -e
|
|
|
|
|
1999-08-23 08:33:08 +00:00
|
|
|
TARGETS="dial net isp router"
|
|
|
|
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 \
|
|
|
|
.build.reply stage1.out build.status
|
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 ===================="
|
1999-08-23 08:33:08 +00:00
|
|
|
for i in `ls -d tinyware/[a-z]*` tools/write_mfs_in_kernel ; do
|
1998-09-29 11:58:54 +00:00
|
|
|
(cd ${i}; \
|
1999-08-23 08:33:08 +00:00
|
|
|
if [ -f Makefile ]; then \
|
|
|
|
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; \
|
1999-08-23 08:33:08 +00:00
|
|
|
if [ -f Makefile ]; then \
|
|
|
|
make clean ; \
|
1998-09-29 11:58:54 +00:00
|
|
|
fi)
|
1998-08-27 17:38:45 +00:00
|
|
|
echo "=============== $0 $j completed successfuly =============="
|
|
|
|
done
|