File: infofilter

package info (click to toggle)
barcode 0.98%2Bdebian-9
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,000 kB
  • ctags: 396
  • sloc: ansic: 3,329; perl: 1,676; python: 535; makefile: 205; sh: 152; awk: 79; sed: 5
file content (16 lines) | stat: -rwxr-xr-x 255 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/sed -f


# allow "%" as a comment char, but only at the beginning of the line
s/^%/@c /
#s/[^\\]%.*$//
s/^\\%/%/

#preserve blanks in @lisp blocks
/@lisp/,/@end lisp/ p
/@lisp/,/@end lisp/ d

# remove leading blanks
s/^[ 	]*//

#s/\\t/@code/g