summaryrefslogtreecommitdiff
path: root/scan_makefile_in.awk
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-03-07 14:20:02 +0000
committerSascha Schumann <sas@php.net>2002-03-07 14:20:02 +0000
commit9d9d39a0de3bec962c343051011f5a2ed7d7b242 (patch)
tree09eb178e4b55da1d73d059067a5ed96ecb2c6464 /scan_makefile_in.awk
parent0e17eea049ba7c77351d2166e89524388922ce80 (diff)
downloadphp-git-9d9d39a0de3bec962c343051011f5a2ed7d7b242.tar.gz
Please welcome the new build system.
If you encounter any problems, please make sure to email sas@php.net directly. An introduction can be found on http://schumann.cx/buildv5.txt
Diffstat (limited to 'scan_makefile_in.awk')
-rw-r--r--scan_makefile_in.awk32
1 files changed, 32 insertions, 0 deletions
diff --git a/scan_makefile_in.awk b/scan_makefile_in.awk
new file mode 100644
index 0000000000..0c6d20398f
--- /dev/null
+++ b/scan_makefile_in.awk
@@ -0,0 +1,32 @@
+BEGIN {
+ mode=0
+ sources=""
+}
+
+mode == 0 && /^LTLIBRARY_SOURCES.*\\$/ {
+ if (match($0, "[^=]*$")) {
+ sources=substr($0, RSTART, RLENGTH-1)
+ }
+ mode=1
+ next
+}
+
+mode == 0 && /^LTLIBRARY_SOURCES.*/ {
+ if (match($0, "[^=]*$")) {
+ sources=substr($0, RSTART, RLENGTH)
+ }
+}
+
+mode == 1 && /.*\\$/ {
+ sources=sources substr($0, 0, length - 1)
+ next
+}
+
+mode == 1 {
+ sources=sources $0
+ mode=0
+}
+
+END {
+ print sources
+}