diff options
Diffstat (limited to '')
-rw-r--r-- | tests/load-archinfo | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/load-archinfo b/tests/load-archinfo index 4c38f6b..09d472b 100644 --- a/tests/load-archinfo +++ b/tests/load-archinfo @@ -20,9 +20,9 @@ getbyteorder () { sed '1,/LIST_ARCH_SPECS/d' < libsyscalls_get_datatype_description.c \ | sed '/#include/q' \ -| sed 's/\(TO''DO\)\s*([^)]*)/\1/g' \ -| sed -n 's/^\s*[A-Z_]\+(LIBSYSCALLS_ARCH_\([^)]*\)).*$/\1/p' \ -| sed 's/,\s*/ /g' > $b +| sed 's/\(TO''DO\)[[:space:]]*([^)]*)/\1/g' \ +| sed -n 's/^[[:space:]]*[A-Z_]\{1,\}(LIBSYSCALLS_ARCH_\([^)]*\)).*$/\1/p' \ +| sed 's/,[[:space:]]*/ /g' > $b archinfo="$(cat $b)" getbytesize () { printf '%s\n' "$archinfo" | grep "^$1 " | cut -d ' ' -f 2 |