File: include.awk

package info (click to toggle)
munipack 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 33,104 kB
  • sloc: cpp: 29,677; sh: 4,909; f90: 2,872; makefile: 278; python: 140; xml: 72; awk: 12
file content (13 lines) | stat: -rwxr-xr-x 172 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
{
if( /<!-- #include virtual=.* -->/ ) {
  split($0,A,"\"");
  filename = "." A[2];
  while((getline line < filename) > 0) {
      print line;
  }
}
else {
    print;
}

}