diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2015-04-20 12:59:14 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2015-04-20 12:59:14 +0000 |
commit | 0da84005cc78eb1045622353bec8daf0b10b277c (patch) | |
tree | 0ff9b8cd0aa89607ca6fa9f1e1b21d474f787ded | |
parent | 9f8cec04eb13f3e51612c88301e64f6391128d57 (diff) | |
download | ports-0da84005cc78eb1045622353bec8daf0b10b277c.tar.gz ports-0da84005cc78eb1045622353bec8daf0b10b277c.zip |
Notes
-rw-r--r-- | databases/libgda5/files/patch-libgda-ui_demos_geninclude.pl.in | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/databases/libgda5/files/patch-libgda-ui_demos_geninclude.pl.in b/databases/libgda5/files/patch-libgda-ui_demos_geninclude.pl.in new file mode 100644 index 000000000000..0365822dd630 --- /dev/null +++ b/databases/libgda5/files/patch-libgda-ui_demos_geninclude.pl.in @@ -0,0 +1,47 @@ +--- libgda-ui/demos/geninclude.pl.in.orig 2013-10-19 12:35:28 UTC ++++ libgda-ui/demos/geninclude.pl.in +@@ -40,7 +40,7 @@ foreach $href (@demos) { + my $do_next = 0; + + # parent detected +- if (defined @parents) { ++ if (@parents) { + foreach $foo (@parents) { + if ($foo eq $parent_name) { + $do_next = 1; +@@ -54,7 +54,7 @@ foreach $href (@demos) { + + push @parents, $parent_name; + +- $tmp = (defined @child_arrays)?($#child_arrays + 1):0; ++ $tmp = (@child_arrays)?($#child_arrays + 1):0; + push @child_arrays, "child$tmp"; + + push @demos, {"title" => $parent_name, "file" => "NULL", +@@ -62,7 +62,7 @@ foreach $href (@demos) { + } + } + +-if (defined @parents) { ++if (@parents) { + $i = 0; + for ($i = 0; $i <= $#parents; $i++) { + $first = 1; +@@ -105,7 +105,7 @@ if (defined @parents) { + } @demos_old; + + # sort the child arrays +-if (defined @child_arrays) { ++if (@child_arrays) { + for ($i = 0; $i <= $#child_arrays; $i++) { + @foo_old = @{$child_arrays[$i]}; + +@@ -133,7 +133,7 @@ foreach $href (@demos) { + print ", \n"; + } + +- if (defined @parents) { ++ if (@parents) { + for ($i = 0; $i <= $#parents; $i++) { + if ($parents[$i] eq $href->{title}) { + |