SED script to convert tests in PTESTS into C form.
authordrepper <drepper>
Sat, 16 May 1998 22:25:39 +0000 (22:25 +0000)
committerdrepper <drepper>
Sat, 16 May 1998 22:25:39 +0000 (22:25 +0000)
posix/PTESTS2C.sed [new file with mode: 0644]

diff --git a/posix/PTESTS2C.sed b/posix/PTESTS2C.sed
new file mode 100644 (file)
index 0000000..98a547d
--- /dev/null
@@ -0,0 +1,4 @@
+/^##/d
+s/# \(.*\)/  { 0, 0, "\1", NULL, },/
+s/\([^¦]*\)¦\([^¦]*\)¦\([^¦]*\)¦\([^¦]*\)¦\(.*\)/  { \1, \2, "\3", "\4", \5 },/
+s/\\/\\\\/g