Created
May 5, 2009 13:09
-
-
Save torarnv/106960 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit f46db6c56076c18cdaa9f0ac17a5ebfd313b32a3 | |
Author: Tor Arne Vestbø <tor.arne.vestbo@nokia.com> | |
Date: Tue May 5 15:16:49 2009 +0200 | |
Guard makeprop.pl for concurrent execution | |
diff --git a/WebCore/css/makeprop.pl b/WebCore/css/makeprop.pl | |
index bc979f9..64050d7 100644 | |
--- a/WebCore/css/makeprop.pl | |
+++ b/WebCore/css/makeprop.pl | |
@@ -93,9 +93,15 @@ EOF | |
close HEADER; | |
-system("gperf -a -L ANSI-C -E -C -c -o -t --key-positions=\"*\" -NfindProp -Hhash_prop -Wwordlist_prop -D -s 2 CSSPropertyNames.gperf > CSSPropertyNames.cpp") == 0 || die "calling gperf failed: $?"; | |
+system("gperf -a -L ANSI-C -E -C -c -o -t --key-positions=\"*\" -NfindProp -Hhash_prop -Wwordlist_prop -D -s 2 CSSPropertyNames.gperf > CSSPropertyNames.cpp.in") == 0 || die "calling gperf failed: $?"; | |
+ | |
+open C, ">CSSPropertyNames.cpp" || die "Could not open CSSPropertyNames.cpp for writing"; | |
+open CIN, "<CSSPropertyNames.cpp.in" || die "Could not find CSSPropertyNames.cpp.in"; | |
+while (<CIN>) { | |
+ print C $_; | |
+} | |
+close(CIN); | |
-open C, ">>CSSPropertyNames.cpp" || die "Could not open CSSPropertyNames.cpp for writing"; | |
print C "static const char * const propertyNameStrings[$num] = {\n"; | |
foreach my $name (@names) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment