summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/compile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/alpha/compile')
-rw-r--r--sys/arch/alpha/compile/build_all38
-rw-r--r--sys/arch/alpha/compile/rebuild_all48
2 files changed, 57 insertions, 29 deletions
diff --git a/sys/arch/alpha/compile/build_all b/sys/arch/alpha/compile/build_all
index a0a470cd77d..abd8fe68ac8 100644
--- a/sys/arch/alpha/compile/build_all
+++ b/sys/arch/alpha/compile/build_all
@@ -1,15 +1,33 @@
#!/bin/sh -
+#
+# $NetBSD: build_all,v 1.4.4.1 1996/06/15 03:46:17 cgd Exp $
-dirlist=`find . -type d ! \( -name . -o -name CVS \) -prune | \
- sed -e s,./,, | sort`
+cflist=`cd ../conf ; find . -type f ! -name "*[a-z.]*" ! -name ".*" | \
+ sed -e 's,^\./,,'`
-for dir in $dirlist; do
- echo === $dir
- echo ""
- echo "***"
- echo ""
- (cd $dir ; time make -k)
- echo ""
- echo "***"
+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
diff --git a/sys/arch/alpha/compile/rebuild_all b/sys/arch/alpha/compile/rebuild_all
index fd619a5bcd5..2a0fa61fbc5 100644
--- a/sys/arch/alpha/compile/rebuild_all
+++ b/sys/arch/alpha/compile/rebuild_all
@@ -1,23 +1,33 @@
#!/bin/sh -
+#
+# $NetBSD: rebuild_all,v 1.4.4.1 1996/06/15 03:46:19 cgd Exp $
-dirlist=`find . -type d ! \( -name . -o -name CVS \) -prune | \
- sed -e s,./,, | sort`
+cflist=`cd ../conf ; find . -type f ! -name "*[a-z.]*" ! -name ".*" | \
+ sed -e 's,^\./,,'`
-for dir in $dirlist; do
- echo === $dir
- echo ""
- echo "***"
- echo ""
- (cd $dir ; time make -k clean)
- echo ""
- echo "***"
- echo ""
- (cd $dir ; time make -k depend)
- echo ""
- echo "***"
- echo ""
- (cd $dir ; time make -k)
- echo ""
- echo "***"
- echo ""
+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