summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/chromium/make-hash-tools-use-if-instead-of-switch.patch
blob: 1b917baa590a89d8bab950d6fc90701517fc6bb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Index: /trunk/Source/WebCore/make-hash-tools.pl
===================================================================
--- /trunk/Source/WebCore/make-hash-tools.pl	(revision 72664)
+++ /trunk/Source/WebCore/make-hash-tools.pl	(revision 89265)
@@ -21,5 +21,4 @@
 
 use strict;
-use Switch;
 use File::Basename;
 
@@ -29,7 +28,5 @@
 
 
-switch ($option) {
-
-case "DocTypeStrings" {
+if ($option eq "DocTypeStrings") {
 
     my $docTypeStringsGenerated    = "$outdir/DocTypeStrings.cpp";
@@ -39,7 +36,5 @@
     system("gperf --key-positions=\"*\" -s 2 $docTypeStringsGperf > $docTypeStringsGenerated") == 0 || die "calling gperf failed: $?";
 
-} # case "DocTypeStrings"
-
-case "ColorData" {
+} elsif ($option eq "ColorData") {
 
     my $colorDataGenerated         = "$outdir/ColorData.cpp";
@@ -49,5 +44,5 @@
     system("gperf --key-positions=\"*\" -D -s 2 $colorDataGperf > $colorDataGenerated") == 0 || die "calling gperf failed: $?";
 
-} # case "ColorData"
-
-} # switch ($option)
+} else {
+    die "Unknown option.";
+}