summaryrefslogtreecommitdiffstats
path: root/release/picobsd/build/clean
blob: 9ba009fcbf3c0455841df881fa8937278c430a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /bin/sh -

#
#	$Id: clean,v 1.7 1998/10/15 21:39:58 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"
	if [ -f picobsd.bin ]
	then
		mv -f picobsd.bin picobsd.bin.old
	fi
else
	list=$1
	if [ -f picobsd.bin ]
	then
		mv -f picobsd.bin picobsd.bin.$1
	fi
fi

rm -f kernel kernel.kz fs.PICOBSD *.o *core *.db
cd ..
rm -rf help/tmp_hlp
echo "===================== $0 tools started ===================="
for i in `ls -d tinyware/[a-z]*` tools/write_mfs_in_kernel
do
	(cd ${i}; \
	if [ -f Makefile ]; \
	then \
		 make clean && make cleandepend;\
	fi)
done
for j in $list
do
	echo "===================== $0 $j started ======================"
	(cd ${j}/crunch1; \
	if [ -f Makefile ]; \
	then \
		 make clean ; \
	fi)
	echo "=============== $0 $j completed successfuly =============="
done
OpenPOWER on IntegriCloud