Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: small configure.ac change
- X-seq: zsh-workers 21290
- From: Geoff Wing <mason@xxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: small configure.ac change
- Date: Mon, 30 May 2005 04:16:14 +0000 (UTC)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: PrimeNet Computer Consultants
- Reply-to: mason@xxxxxxxxxxxxxxx
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author