diff options
Diffstat (limited to 'src/libregexp/cvt')
-rwxr-xr-x | src/libregexp/cvt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libregexp/cvt b/src/libregexp/cvt new file mode 100755 index 00000000..23757bea --- /dev/null +++ b/src/libregexp/cvt @@ -0,0 +1,11 @@ +#!/bin/sh + +/usr/bin/sed -E ' + s/\.(sp|rsp)/.s.\1/g + s/\.(ep|rep)/.e.\1/g + s/(\.|->)(cp|r|subid|right)([^a-zA-Z0-9_])/\1u1.\2\3/g + s/(\.|->)(left|next)([^a-z])/\1u2.\2\3/g + /#include <u.h>/d + s/<libc.h>/"lib9.h"/g + s/"regexp.h"/"regexp9.h"/g +' $* |