File: stateful-check.sed

package info (click to toggle)
clisp 1%3A2.27-0.5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 49,860 kB
  • ctags: 20,752
  • sloc: ansic: 123,781; lisp: 67,533; asm: 19,633; xml: 11,766; sh: 9,788; fortran: 8,307; makefile: 3,570; objc: 2,481; perl: 1,744; java: 341; yacc: 318; sed: 117
file content (16 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Sed script for tests/stateful-check editing.

/set -e/ a\
# For systems that distinguish between text and binary I/O\
# the binary mode of iconv must be selected and for\
# systems with severe filename restrictions allow for\
# an alternate filename.\
UNAME=${UNAME-`uname 2>/dev/null`}\
case X$UNAME in\
  *-DOS) MODE='--binary'\
         filename=`echo "$charset" | sed "s|ISO-|ISO/|;s|2022-|2022|"` ;;\
  *)     MODE=''\
         filename="$charset" ;;\
esac
/iconv/ s/iconv/& $MODE/
s/\$charset"-snippet/$filename"-snippet/g