diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/util/ChangeLog | 8 | ||||
| -rw-r--r-- | src/util/kbuild | 12 |
2 files changed, 18 insertions, 2 deletions
diff --git a/src/util/ChangeLog b/src/util/ChangeLog index 9f07edf064..0cf93e7e39 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,5 +1,9 @@ +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. diff --git a/src/util/kbuild b/src/util/kbuild index 621c1e1b1c..a2496c2f70 100644 --- a/src/util/kbuild +++ b/src/util/kbuild @@ -33,6 +33,18 @@ 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 |
