diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:57:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:57:42 +0100 |
commit | 1798c4aeca70ac8d0a243684d6a798fbc65735f8 (patch) | |
tree | e48e19cb6fa03de18e1c63e1a93371b7ebc4eb56 /dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-two.patch | |
parent | d87262dd706fec50cd150aab3e93883b6337466d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-two.patch')
-rw-r--r-- | dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-two.patch | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-two.patch b/dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-two.patch deleted file mode 100644 index 911a31b21bf3..000000000000 --- a/dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-two.patch +++ /dev/null @@ -1,75 +0,0 @@ ---- colorgcc.r9 2003-09-21 12:14:48.000000000 -0700 -+++ colorgcc 2003-09-21 13:11:22.000000000 -0700 -@@ -95,6 +95,7 @@ - use Cwd 'abs_path'; - - my(%nocolor, %colors, %compilerPaths); -+my($unfinishedQuote, $previousColor); - - sub initDefaults - { -@@ -159,14 +160,37 @@ - - my($line, $normalColor) = @_; - -+ if (defined $normalColor) -+ { -+ $previousColor = $normalColor; -+ } -+ else -+ { -+ $normalColor = $previousColor; -+ } -+ - my($srcon) = color("reset") . $colors{"srcColor"}; - my($srcoff) = color("reset") . $normalColor; - -- $line = $normalColor . $line; -+ $line = ($unfinishedQuote? $srcon : $normalColor) . $line; - -- # This substitute replaces `foo' with `AfooB' where A is the escape -+ # These substitutions replaces `foo' with `AfooB' where A is the escape - # sequence that turns on the the desired source color, and B is the - # escape sequence that returns to $normalColor. -+ -+ # Handle multi-line quotes. -+ if ($unfinishedQuote) { -+ if ($line =~ s/^([^\`]*?)\'/$1$srcoff\'/) -+ { -+ $unfinishedQuote = 0; -+ } -+ } -+ if ($line =~ s/\`([^\']*?)$/\`$srcon$1/) -+ { -+ $unfinishedQuote = 1; -+ } -+ -+ # Single line quoting. - $line =~ s/\`(.*?)\'/\`$srcon$1$srcoff\'/g; - - print($line, color("reset")); -@@ -190,6 +214,10 @@ - loadPreferences('/etc/colorgcc/colorgccrc'); - } - -+# Set our default output color. This presumes that any unrecognized output -+# is an error. -+$previousColor = $colors{"errorMessageColor"}; -+ - # Figure out which compiler to invoke based on our program name. - $0 =~ m%.*/(.*)$%; - my $progName = $1 || $0; -@@ -281,10 +309,9 @@ - # No line number, treat as an "introductory" line of text. - srcscan($_, $colors{"introColor"}); - } -- else # Anything else. -+ else # Anything else. - { -- # Doesn't seem to be a warning or an error. Print normally. -- print(color("reset"), $_); -+ srcscan($_, undef); - } - } - - |