source: trunk/server/common/oursrc/php_scripts/test/build/scan_makefile_in.awk @ 1137

Last change on this file since 1137 was 1137, checked in by quentin, 13 years ago
Import scripts PHP module
File size: 410 bytes
RevLine 
[1137]1BEGIN {
2        mode=0
3        sources=""
4}
5       
6mode == 0 && /^LTLIBRARY_SOURCES.*\\$/ {
7        if (match($0, "[^=]*$")) {
8        sources=substr($0, RSTART, RLENGTH-1)
9        }
10        mode=1
11        next
12}
13
14mode == 0 && /^LTLIBRARY_SOURCES.*/ {
15        if (match($0, "[^=]*$")) {
16        sources=substr($0, RSTART, RLENGTH)
17        }
18}
19
20mode == 1 && /.*\\$/ {
21        sources=sources substr($0, 0, length - 1)
22        next
23}
24
25mode == 1 {
26        sources=sources $0
27        mode=0
28}
29
30END {
31        print sources
32}
Note: See TracBrowser for help on using the repository browser.