public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 3.x development tree branch, master, updated. 84581c2d9b890587e6f56448b509970b3240a887
Date: Sun, 23 Feb 2014 16:37:54 +0100	[thread overview]
Message-ID: <20140223153857.7C0AD208ED@argus.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 3166 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 3.x development tree".

The branch, master has been updated
       via  84581c2d9b890587e6f56448b509970b3240a887 (commit)
       via  87621bcc7aceddb24b80ebffc529a176080cfed3 (commit)
      from  b9f034e1d693ba17cce1295ca1e430262a734dc3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 84581c2d9b890587e6f56448b509970b3240a887
Merge: 87621bc b9f034e
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Sun Feb 23 16:37:43 2014 +0100

    Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x

commit 87621bcc7aceddb24b80ebffc529a176080cfed3
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Sun Feb 23 16:36:58 2014 +0100

    grep: Update to 2.17.
    
    Also adds automatic colouring of matched strings.

-----------------------------------------------------------------------

Summary of changes:
 grep/GREP_COLORS  |  4 ++++
 grep/colorgrep.sh |  9 +++++++++
 grep/grep.nm      | 16 +++++++++++++++-
 3 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 grep/GREP_COLORS
 create mode 100644 grep/colorgrep.sh

Difference in files:
diff --git a/grep/GREP_COLORS b/grep/GREP_COLORS
new file mode 100644
index 0000000..1ef53a6
--- /dev/null
+++ b/grep/GREP_COLORS
@@ -0,0 +1,4 @@
+# Configuration file for the color grep utility
+
+# 'none' shuts colorization off.
+#COLOR none
diff --git a/grep/colorgrep.sh b/grep/colorgrep.sh
new file mode 100644
index 0000000..929c78a
--- /dev/null
+++ b/grep/colorgrep.sh
@@ -0,0 +1,9 @@
+# color-grep initialization
+
+if [ -r /etc/GREP_COLORS ]; then
+	grep -qi "^COLOR.*none" /etc/GREP_COLORS >/dev/null 2>/dev/null && return
+fi
+
+alias grep='grep --color=auto' 2>/dev/null
+alias egrep='egrep --color=auto' 2>/dev/null
+alias fgrep='fgrep --color=auto' 2>/dev/null
diff --git a/grep/grep.nm b/grep/grep.nm
index 0aa3427..2dea0cc 100644
--- a/grep/grep.nm
+++ b/grep/grep.nm
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = grep
-version    = 2.16
+version    = 2.17
 release    = 1
 
 groups     = Applications/Text
@@ -41,6 +41,14 @@ build
 	test
 		make check
 	end
+
+	install_cmds
+		mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d
+		install -m 644 %{DIR_SOURCE}/colorgrep.sh \
+			%{BUILDROOT}%{sysconfdir}/profile.d
+		install -m 644 %{DIR_SOURCE}/GREP_COLORS \
+			%{BUILDROOT}%{sysconfdir}
+	end
 end
 
 packages
@@ -49,11 +57,17 @@ packages
 
 		provides
 			/bin/grep
+			bundled(gnulib)
 		end
 
 		conflicts
 			filesystem < 002
 		end
+
+		configfiles
+			%{sysconfdir}/profile.d/colorgrep.sh
+			%{sysconfdir}/GREP_COLORS
+		end
 	end
 
 	package %{name}-debuginfo


hooks/post-receive
--
IPFire 3.x development tree

                 reply	other threads:[~2014-02-23 15:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140223153857.7C0AD208ED@argus.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox