diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 2000-03-25 18:17:20 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 2000-03-25 18:17:20 +0000 |
commit | eebca53173b43fcb801ad06804b1b183038298d2 (patch) | |
tree | 6ff7bc38513004836052fce9056c48bb680167a3 /gnu/usr.bin/lynx/cfg_edit.sh | |
parent | 0270bc013175ccc71004e1c5f79171acbbc9ae3d (diff) |
Upgrade to Lynx 2.8.2. -moj
Diffstat (limited to 'gnu/usr.bin/lynx/cfg_edit.sh')
-rw-r--r-- | gnu/usr.bin/lynx/cfg_edit.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/usr.bin/lynx/cfg_edit.sh b/gnu/usr.bin/lynx/cfg_edit.sh new file mode 100644 index 00000000000..6206c6c456f --- /dev/null +++ b/gnu/usr.bin/lynx/cfg_edit.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Invoked from cfg_defs.sh as a filter +# Strip leading and trailing whitespace +# Escape any iternal '\' +# Escape any iternal '"' +# Entify any iternal '&', '<' or '>' +# Append a '=' if none present' +# Break into two strings at '=' +# Prefix ' { "' and suffix '" },' +sort | +sed -e 's!^[ ]*!!' -e 's![ ]*$!!' \ + -e 's!\\!\\\\!g' \ + -e 's!"!\\"!g' \ + -e 's!&!\&!g' -e 's!<!\<!g' -e 's!>!\>!g' \ + -e 's!^[^=]*$!&=!' \ + -e 's!=!", "!' \ + -e 's!^! { "!' -e 's!$!" },!' |