wok-next diff asterisk/stuff/extract-cfile.awk @ rev 10942
asterisk: store ilbc sources in src cache
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 29 18:16:24 2011 +0200 (2011-08-29) |
parents | |
children | a18a8903a08d |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/asterisk/stuff/extract-cfile.awk Mon Aug 29 18:16:24 2011 +0200 1.3 @@ -0,0 +1,25 @@ 1.4 +BEGIN { srcname = "nothing"; } 1.5 +{ if (/^A\.[0-9][0-9]*\.* *[a-zA-Z][a-zA-Z_0-9]*\.[ch]/) { 1.6 + if (srcname != "nothing") 1.7 + close(srcname); 1.8 + srcname = $2; 1.9 + printf("creating source file %s\n", srcname); 1.10 + }else if (srcname != "nothing") { 1.11 + if (/Andersen,* *et* *al\./) 1.12 + printf("skipping %s\n", $0); 1.13 + else if (//) 1.14 + printf("skipping2 %s\n", $0); 1.15 + else if (/Internet Low Bit Rate Codec *December 2004/) 1.16 + printf("skipping3 %s\n", $0); 1.17 + else if (/Authors' *Addresses/){ 1.18 + close(srcname); 1.19 + exit;} 1.20 + else 1.21 + print $0 >> srcname; 1.22 + } 1.23 +} 1.24 +END { 1.25 + printf("ending file %s\n", srcname); 1.26 + close(srcname); 1.27 +} 1.28 +</pre></div></body></html> 1.29 \ No newline at end of file