1998-08-27 17:38:45 +00:00
|
|
|
#! /bin/sh -
|
|
|
|
|
|
|
|
#
|
1998-10-15 21:40:07 +00:00
|
|
|
# $Id: clean,v 1.6 1998/09/29 11:58:54 abial Exp $
|
1998-08-27 17:38:45 +00:00
|
|
|
#
|
|
|
|
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"
|
1998-10-15 21:40:07 +00:00
|
|
|
if [ -f picobsd.bin ]
|
|
|
|
then
|
|
|
|
mv -f picobsd.bin picobsd.bin.old
|
|
|
|
fi
|
1998-08-27 17:38:45 +00:00
|
|
|
else
|
|
|
|
list=$1
|
1998-10-15 21:40:07 +00:00
|
|
|
if [ -f picobsd.bin ]
|
|
|
|
then
|
|
|
|
mv -f picobsd.bin picobsd.bin.$1
|
|
|
|
fi
|
1998-08-27 17:38:45 +00:00
|
|
|
fi
|
|
|
|
|
1998-09-29 11:58:54 +00:00
|
|
|
rm -f kernel kernel.kz fs.PICOBSD *.o *core *.db
|
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 ===================="
|
|
|
|
for i in `ls -d tinyware/[a-z]*` tools/write_mfs_in_kernel tools/dumpnlist
|
|
|
|
do
|
|
|
|
(cd ${i}; \
|
|
|
|
if [ -f Makefile ]; \
|
|
|
|
then \
|
|
|
|
make clean && make cleandepend;\
|
|
|
|
fi)
|
|
|
|
done
|
1998-08-27 17:38:45 +00:00
|
|
|
for j in $list
|
|
|
|
do
|
|
|
|
echo "===================== $0 $j started ======================"
|
1998-09-29 11:58:54 +00:00
|
|
|
(cd ${j}/crunch1; \
|
|
|
|
if [ -f Makefile ]; \
|
|
|
|
then \
|
|
|
|
make clean ; \
|
|
|
|
fi)
|
1998-08-27 17:38:45 +00:00
|
|
|
echo "=============== $0 $j completed successfuly =============="
|
|
|
|
done
|