diff options
author | J.T. Conklin <jtc@acorntoolworks.com> | 1995-05-31 19:31:20 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@acorntoolworks.com> | 1995-05-31 19:31:20 +0000 |
commit | 3be5f0397a020d6d82c7e5a87203ff902f869cf8 (patch) | |
tree | 5d16beda4f37f56fc2c77ad65265f9c5ae48f255 /gdb/nlm | |
parent | 2de498d8e3d389f9aff9b86f8068f2a278c7bb5c (diff) | |
download | gdb-3be5f0397a020d6d82c7e5a87203ff902f869cf8.zip gdb-3be5f0397a020d6d82c7e5a87203ff902f869cf8.tar.gz gdb-3be5f0397a020d6d82c7e5a87203ff902f869cf8.tar.bz2 |
* nlm/configure.in: Use sed instead of awk to get the value of
cpufile. Awk is not a utility required by the GNU coding
standards. This change also fixes the rigid whitespace
requirements that were required for awk.
Diffstat (limited to 'gdb/nlm')
-rw-r--r-- | gdb/nlm/configure.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/nlm/configure.in b/gdb/nlm/configure.in index f50e3cf..436af5b 100644 --- a/gdb/nlm/configure.in +++ b/gdb/nlm/configure.in @@ -23,15 +23,15 @@ sparc*) gdb_target_cpu=sparc ;; esac -if [ ! -f ${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt ]; then +target_makefile_frag=${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt +if [ ! -f ${target_makefile_frag} ]; then echo '***' "GDBSERVE does not support target ${target}" 1>&2 exit 1 fi -# We really shouldn't depend on there being a space after CPU_FILE= ... -cpufile=`awk '$1 == "CPU_FILE=" { print $2 }' <${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt` - -target_makefile_frag=../config/${gdb_target_cpu}/gdbserve.mt +cpufile=`sed -n ' +s/CPU_FILE[ ]*=[ ]*\([^ ]*\)/\1/p +' ${target_makefile_frag} # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile # (NAT_FILE) is not set in the ?config/* file, we don't make the |