File: doxy-filter

package info (click to toggle)
lynkeos.app 3.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,740 kB
  • sloc: objc: 36,412; ansic: 684; cpp: 148; sh: 68; makefile: 21
file content (12 lines) | stat: -rwxr-xr-x 294 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Delete HeaderDoc keywords useless for Doxygen 
# (but keep line numbering intact)
awk 'BEGIN { inspec = 0; }
/\/\*!/ { inspec = 1; }
/\*\// { inspec = 0; }
/@function/  { if (inspec) { printf( "\n"); next; } }
/@method/  { if (inspec) { printf( "\n"); next; } }

{ print $0 }
' $@