Mercurial > hg > octave-lyh
changeset 13023:7d1e11d922aa
maint: split fields correctly in config-module.awk script
* config-module.awk: Set FS to "|". Split fields with FS instead of
split function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 29 Aug 2011 10:53:07 -0400 |
parents | 05534f03377d |
children | f3c53fea9fb5 |
files | src/DLD-FUNCTIONS/config-module.awk |
diffstat | 1 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/config-module.awk +++ b/src/DLD-FUNCTIONS/config-module.awk @@ -1,4 +1,7 @@ BEGIN { + FS = "|"; + nfiles = 0; + print "## DO NOT EDIT -- generated from module-files by config-module.awk"; print "" print "EXTRA_DIST += \\" @@ -6,16 +9,14 @@ print " DLD-FUNCTIONS/config-module.awk \\" print " DLD-FUNCTIONS/module-files" print "" - nfiles = 0; } /^#.*/ { next; } { - split ($1, fields, "|"); nfiles++; - files[nfiles] = fields[1]; - cppflags[nfiles] = fields[2]; - ldflags[nfiles] = fields[3]; - libraries[nfiles] = fields[4]; + files[nfiles] = $1; + cppflags[nfiles] = $2; + ldflags[nfiles] = $3; + libraries[nfiles] = $4; } END { sep = " \\\n"; print "DLD_FUNCTIONS_SRC = \\"; @@ -69,7 +70,7 @@ } printf ("DLD_FUNCTIONS_%s_la_LDFLAGS = -avoid-version -module %s $(OCT_LINK_OPTS)\n", basename, ldflags[i]); - printf ("DLD_FUNCTIONS_%s_la_LIBADD = %s $(OCT_LINK_DEPS)\n", + printf ("DLD_FUNCTIONS_%s_la_LIBADD = liboctinterp.la ../liboctave/liboctave.la ../libcruft/libcruft.la %s $(OCT_LINK_DEPS)\n", basename, libraries[i]); } }