~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to build/scan_makefile_in.awk

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
BEGIN {
 
2
        mode=0
 
3
        sources=""
 
4
}
 
5
        
 
6
mode == 0 && /^LTLIBRARY_SOURCES.*\\$/ {
 
7
        if (match($0, "[^=]*$")) {
 
8
        sources=substr($0, RSTART, RLENGTH-1)
 
9
        }
 
10
        mode=1
 
11
        next
 
12
}
 
13
 
 
14
mode == 0 && /^LTLIBRARY_SOURCES.*/ {
 
15
        if (match($0, "[^=]*$")) {
 
16
        sources=substr($0, RSTART, RLENGTH)
 
17
        }
 
18
}
 
19
 
 
20
mode == 1 && /.*\\$/ {
 
21
        sources=sources substr($0, 0, length - 1)
 
22
        next
 
23
}
 
24
 
 
25
mode == 1 {
 
26
        sources=sources $0
 
27
        mode=0
 
28
}
 
29
 
 
30
END {
 
31
        print sources
 
32
}