summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/chromium/make-hash-tools-use-if-instead-of-switch.patch
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2011-08-09 21:01:45 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2011-08-09 21:01:45 (GMT)
commitcffec9e13095fa6f4eaca2bfbbe7bb4df73db5f3 (patch)
tree560a407c249084dafbbe59f4a7764c574d8f9e29 /abs/extra/community/chromium/make-hash-tools-use-if-instead-of-switch.patch
parentd448b681fe3feef23e4df4959396300557504952 (diff)
downloadlinhes_pkgbuild-cffec9e13095fa6f4eaca2bfbbe7bb4df73db5f3.zip
linhes_pkgbuild-cffec9e13095fa6f4eaca2bfbbe7bb4df73db5f3.tar.gz
linhes_pkgbuild-cffec9e13095fa6f4eaca2bfbbe7bb4df73db5f3.tar.bz2
chromium: Update to 13.0.782.112 and some minor PKGBUILD changes
Diffstat (limited to 'abs/extra/community/chromium/make-hash-tools-use-if-instead-of-switch.patch')
-rw-r--r--abs/extra/community/chromium/make-hash-tools-use-if-instead-of-switch.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/abs/extra/community/chromium/make-hash-tools-use-if-instead-of-switch.patch b/abs/extra/community/chromium/make-hash-tools-use-if-instead-of-switch.patch
new file mode 100644
index 0000000..1b917ba
--- /dev/null
+++ b/abs/extra/community/chromium/make-hash-tools-use-if-instead-of-switch.patch
@@ -0,0 +1,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.";
++}