diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2015-04-13 14:00:44 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2015-04-13 14:00:44 +0000 |
commit | 43eeee825eed593fb647f0b8c21af15f4603d81e (patch) | |
tree | 9792b9ec42a282e4766c3d40cd55acca23af14fe | |
parent | d27bb9fcc4166300755f9c9b32168004d487d297 (diff) | |
download | ports-43eeee825eed593fb647f0b8c21af15f4603d81e.tar.gz ports-43eeee825eed593fb647f0b8c21af15f4603d81e.zip |
Notes
-rw-r--r-- | x11-toolkits/gtk20/files/patch-demos_gtk-demo_geninclude.pl.in | 97 |
1 files changed, 47 insertions, 50 deletions
diff --git a/x11-toolkits/gtk20/files/patch-demos_gtk-demo_geninclude.pl.in b/x11-toolkits/gtk20/files/patch-demos_gtk-demo_geninclude.pl.in index 6e9e7e4640c3..748d792fa780 100644 --- a/x11-toolkits/gtk20/files/patch-demos_gtk-demo_geninclude.pl.in +++ b/x11-toolkits/gtk20/files/patch-demos_gtk-demo_geninclude.pl.in @@ -1,50 +1,47 @@ ---- files/patch-demos_gtk-demo_geninclude.pl.in (revision 0) -+++ files/patch-demos_gtk-demo_geninclude.pl.in (working copy) -@@ -0,0 +1,47 @@ -+--- demos/gtk-demo/geninclude.pl.in.orig 2014-09-29 20:02:16 UTC -++++ demos/gtk-demo/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}) { -+ +--- demos/gtk-demo/geninclude.pl.in.orig 2014-09-29 20:02:16 UTC ++++ demos/gtk-demo/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}) { + |