+Fri Sep 30 19:28:24 1994 Mark Eichin (eichin@cygnus.com)
+
+ * kbuild: set SRCDIR by default from program name.
+
Thu Sep 29 19:54:38 1994 Mark Eichin (eichin@cygnus.com)
- * util/kbuild: complete rewrite.
- * util/kfrags: fragments of input to kbuild.
+ * kbuild: complete rewrite.
+ * kfrags: fragments of input to kbuild.
progname=$0
pts="`echo ${progname} | sed 's=[^/]*$=='`"
+#
+# sneak in default knowledge that this program is one level down from the
+# top of the source tree
+#
+
+case $pts in
+/*) SRCDIR="`echo ${pts} | sed 's=[^/]*/*$=='`"
+ echo "default srcdir $SRCDIR";;
+../*) SRCDIR="`cd ${pts}/.. ; pwd`"
+ echo "default srcdir $SRCDIR";;
+esac
+
conflib=". $pts/kfrags"
THISCONF=./kbuild.temp