1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

Fix gawk patch.

This commit is contained in:
Max Khon 2012-06-16 09:43:48 +00:00
parent 27cffc23d4
commit 19dfe0d5b7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299393

View File

@ -1,7 +1,5 @@
Index: binsrc/cached_resources/res_to_c.awk
diff -u binsrc/cached_resources/res_to_c.awk:1.2.4.1 binsrc/cached_resources/res_to_c.awk:1.2.4.2
--- binsrc/cached_resources/res_to_c.awk:1.2.4.1 Thu Sep 8 16:13:20 2011
+++ binsrc/cached_resources/res_to_c.awk Thu Mar 8 15:09:50 2012
--- binsrc/cached_resources/res_to_c.awk.orig 2011-10-26 20:53:59.000000000 +0700
+++ binsrc/cached_resources/res_to_c.awk 2012-06-16 16:36:20.000000000 +0700
@@ -30,13 +30,7 @@
}
{
@ -17,21 +15,20 @@ diff -u binsrc/cached_resources/res_to_c.awk:1.2.4.1 binsrc/cached_resources/res
gsub ( /"/, "\\\"", fun)
gsub ( /\$/, "\\044", fun)
gsub ( /.*/, "\"&\\n\",", fun)
Index: libsrc/Wi/sql_to_c.awk
diff -u libsrc/Wi/sql_to_c.awk:1.51.2.9 libsrc/Wi/sql_to_c.awk:1.51.2.10
--- libsrc/Wi/sql_to_c.awk:1.51.2.9 Mon Sep 12 16:29:43 2011
+++ libsrc/Wi/sql_to_c.awk Thu Mar 8 15:09:50 2012
es escape the symbols
fun = $0
- q = "\\\\"
- if (PROCINFO["version"] ~ /^4/)
- gsub ( q, q q, fun)
- else
- gsub ( q, q, fun)
--- libsrc/Wi/sql_to_c.awk.orig 2011-10-26 20:54:20.000000000 +0700
+++ libsrc/Wi/sql_to_c.awk 2012-06-16 16:41:30.000000000 +0700
@@ -343,13 +343,7 @@
# does escape the symbols
fun = $0
- q = "\\\\"
- if (PROCINFO["version"] ~ /^4/)
- gsub ( q, q q, fun)
- else
- gsub ( q, q, fun)
-
- #WAS: gsub ( /\\/, "\\\\", fun)
+ gsub ("\\\\", '&&', fun)
# remove whitespace except when there is just a semicolon
if ((in_xsl_mode == 0) && (in_xsd_mode == 0))
- #WAS: gsub ( /\\/, "\\\\", fun)
+ gsub ( "\\\\", "&&", fun)
# remove whitespace except when there is just a semicolon
if ((in_xsl_mode == 0) && (in_xsd_mode == 0))