aboutsummaryrefslogtreecommitdiff
path: root/testsuite/xemacs.sed
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-07-10 13:40:42 -0700
committerElliott Hughes <enh@google.com>2015-07-10 13:43:13 -0700
commit45df23d6dc8b51ea5cd903d023c10fd7d72415b9 (patch)
treee519be160770e6b20bfe88eb923ea6aa8edb3e58 /testsuite/xemacs.sed
parent06d7c2456b4b968f2282fd916456d036ddab4f15 (diff)
downloadsed-ndk-r16-release.tar.gz
Downloaded from http://ftp.gnu.org/gnu/sed/ and extracted verbatim. Needed to build Mac GCCs for mips/mips64 --- the BSD sed doesn't supported extended regex alternate syntax \(a\|b\). It will understand sed -E "(a|b)" with the escapes removed, but that's not what's in the configure file. Bug: http://b/22099482 Change-Id: Iec036ab35497a957fe462de1d4fdc326e7df5844
Diffstat (limited to 'testsuite/xemacs.sed')
-rw-r--r--testsuite/xemacs.sed16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/xemacs.sed b/testsuite/xemacs.sed
new file mode 100644
index 0000000..ee2f744
--- /dev/null
+++ b/testsuite/xemacs.sed
@@ -0,0 +1,16 @@
+# Inspired by xemacs' config.status script
+# submitted by John Fremlin (john@fremlin.de)
+
+/^# Generated/d
+s%/\*\*/#.*%%
+s/^ *# */#/
+/^##/d
+/^#/ {
+ p
+ d
+}
+/./ {
+ s/\([\"]\)/\\\1/g
+ s/^/"/
+ s/$/"/
+}