zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: small configure.ac change
@ 2005-05-30  4:16 Geoff Wing
  0 siblings, 0 replies; only message in thread
From: Geoff Wing @ 2005-05-30  4:16 UTC (permalink / raw)
  To: zsh-workers

Heyla,
a small cleanup with AWK usage in configure.ac.
1) We shouldn't need to backslash quote the string character in the
   single-quoted area.  Was this supposed to be for a specific platform?
2) use slash as the boundary for the constant RE instead of the
   backslash and double-quote pairs.

Regards,
Geoff

--- configure.ac.orig	2005-05-30 13:34:43.000000000 +1000
+++ configure.ac	2005-05-30 12:47:33.000000000 +1000
@@ -1239,7 +1239,7 @@
 sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
        -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
 sed 's/\\\\\\\\/\//g' |
-$AWK '{ if (\$1 ~ \"sig\") files[[\$1]] = \$1 }
+$AWK '{ if ($1 ~ /sig/) files[[$1]] = $1 }
   END { for (var in files) print var }'`"
 rm -f nametmp.c
 if test -z "$sigfile_list"; then
@@ -1287,7 +1287,7 @@
 sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
        -e 's/^#[ 	0-9].*\"\(.*\)\"/\1/p' |
 sed 's/\\\\\\\\/\//g' |
-$AWK '{ if (\$1 ~ \"err\") files[[\$1]] = \$1 }
+$AWK '{ if ($1 ~ /err/) files[[$1]] = $1 }
   END { for (var in files) print var }'`"
 rm -f nametmp.c
 for ERRNO_H in $errfile_list /dev/null
@@ -1319,7 +1319,7 @@
 sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
        -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
 sed 's/\\\\\\\\/\//g' |
-$AWK '{ if (\$1 ~ \"resource\") files[[\$1]] = \$1 }
+$AWK '{ if ($1 ~ /resource/) files[[$1]] = $1 }
   END { for (var in files) print var }'`"
 rm -f restmp.c
 if test -z "$resourcefile_list"; then


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-30  4:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-30  4:16 PATCH: small configure.ac change Geoff Wing

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).