summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/compile/rebuild_all
blob: 30eea0f5d8f07f3b4e104c20ca80beb61b4e5ade (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
#!/bin/sh -
#
#	$OpenBSD: rebuild_all,v 1.4 1996/10/30 22:38:35 niklas Exp $
#	$NetBSD: rebuild_all,v 1.6 1996/08/20 22:28:40 cgd Exp $

cflist=`cd ../conf ; find . -type f ! -name "*[a-z]*" ! -name ".*" | \
    sed -e 's,^\./,,'`

docmd()
{

	echo "    ===> $*"
#	echo "        eval ($*)"
	eval "($*)"
	echo "    <==="
}

docf()
{
	echo "===> $1"
	(
		# docmd "cd ../conf ; config $cf" 
		cd $cf
		# docmd "time make -k clean"
		# docmd "time make -k depend"
		docmd "time make -k"
	)
	echo "<==="
	echo ""
}

for cf in $cflist; do
	docf $cf
done