File: ginsh_op_help.sed

package info (click to toggle)
ginac 1.0.8-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,544 kB
  • ctags: 3,232
  • sloc: cpp: 27,732; sh: 7,126; perl: 1,819; yacc: 763; lex: 345; makefile: 221; sed: 32
file content (18 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Convert help for ginsh operators from man page to C source
/GINSH_OP_HELP_START/,/GINSH_OP_HELP_END/{

# .B lines contain the operator symbol
/.B/{

# extract operator symbol
s/.B \(.*\)/insert_help("operators","\1\\t"/
s/\\-/-/g
p

# next line contains description
n
s/^/"/
s/$/");/
p
}
}