home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / openh323.tar.gz / openh323.tar / openh323 / dllcodecs / ilbccodec / extract-cfile.awk < prev    next >
Text File  |  2003-04-27  |  459b  |  18 lines

  1. BEGIN { srcname = "nothing"; }
  2. { if (/^A\.[0-9][0-9]* [a-zA-Z][a-zA-Z_0-9]*\.[ch]/) {
  3.     if (srcname != "nothing")
  4.       close(srcname);
  5.     srcname = $2;
  6.     printf("creating source file %s\n", srcname);
  7.   }else if (srcname != "nothing") {
  8.     if (/Andersen et\. al\./ || /Internet Low Bit Rate Codec *March 2003/)
  9.       printf("skipping %s\n", $0);
  10.     else
  11.       print $0 >> srcname;
  12.   }
  13. }
  14. END {
  15.   printf("ending file %s\n", srcname);
  16.   close(srcname);
  17. }
  18.