diff options
author | rsc <devnull@localhost> | 2004-04-21 23:43:46 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-21 23:43:46 +0000 |
commit | 7e42d210121c9c2898caddcfc09d7e8d836c252e (patch) | |
tree | f83363d352e4ecfd3ae4c2d0c166cfa955c41c5d /src/libregexp | |
parent | e12fa2a49ba303cee8d302f1911bd55545ada98e (diff) | |
download | plan9port-7e42d210121c9c2898caddcfc09d7e8d836c252e.tar.gz plan9port-7e42d210121c9c2898caddcfc09d7e8d836c252e.tar.bz2 plan9port-7e42d210121c9c2898caddcfc09d7e8d836c252e.zip |
odds and ends
Diffstat (limited to 'src/libregexp')
-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 +' $* |