[PATCH 1/3] xlat/gen.sh: add some rudimentary support for comments
Eugene Syromyatnikov
evgsyr at gmail.com
Wed Sep 13 19:57:46 UTC 2017
---
xlat/gen.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/xlat/gen.sh b/xlat/gen.sh
index 06c1b17..9efa0ab 100755
--- a/xlat/gen.sh
+++ b/xlat/gen.sh
@@ -135,6 +135,9 @@ gen_header()
# 1st pass: output directives.
while read line; do
LC_COLLATE=C
+ line=$(printf "%s" "$line" | \
+ sed "s|[[:space:]]*/\*.*\*/[[:space:]]*||")
+
case $line in
'#stop')
exit 0
@@ -196,6 +199,9 @@ gen_header()
# 2nd pass: output everything.
while read line; do
LC_COLLATE=C
+ line=$(printf "%s" "$line" | \
+ sed "s|[[:space:]]*/\*.*\*/[[:space:]]*||")
+
case ${line} in
'#conditional')
unconditional=
--
2.1.4
More information about the Strace-devel
mailing list