Projects
openEuler:Mainline
grep
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:grep.spec
Changed
@@ -1,10 +1,13 @@ Name: grep Version: 3.7 -Release: 5 +Release: 6 Summary: A string search utility License: GPLv3+ URL: http://www.gnu.org/software/grep/ Source0: https://ftp.gnu.org/gnu/grep/grep-%{version}.tar.xz +Source1: color_grep.sh +Source2: colorgrep.csh +Source3: grepconf.sh Patch1: backport-grep-avoid-sticky-problem-with-f-f.patch Patch2: backport-grep-s-does-not-suppress-binary-file-matches.patch @@ -34,6 +37,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d +install -pm 644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d +install -Dpm 755 %{SOURCE3} $RPM_BUILD_ROOT%{_libexecdir}/grepconf.sh + %pre %preun %post @@ -44,14 +50,20 @@ %files %{_datadir}/locale/* +%config(noreplace) %{_sysconfdir}/profile.d/color_grep.sh +%config(noreplace) %{_sysconfdir}/profile.d/colorgrep.csh %doc NEWS README THANKS TODO %license COPYING AUTHORS %{_bindir}/*grep +%{_libexecdir}/grepconf.sh %{_infodir}/grep.info.gz %{_mandir}/man1/*grep.1.gz %changelog +* Fri Jul 15 2022 panxiaohe <panxh.life@foxmail.com> - 3.7-6 +- Added coloring aliases to fgrep egrep and grep + * Tue Jun 28 2022 panxiaohe <panxh.life@foxmail.com> - 3.7-5 - grep: Don't limit jitstack_max to INT_MAX - grep: speed up, fix bad-UTF8 check with -P
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/grep.git</param> - <param name="revision">f5da03b349d12b09405298f991cb05db5536927d</param> + <param name="revision">cd158069aea1880067e7278480db8ab14c44f8f8</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
View file
_service:tar_scm:color_grep.sh
Added
@@ -0,0 +1,7 @@ +#!/bin/bash + +/usr/libexec/grepconf.sh -c || return + +alias grep='grep --color=auto' 2>/dev/null +alias egrep='egrep --color=auto' 2>/dev/null +alias fgrep='fgrep --color=auto' 2>/dev/null
View file
_service:tar_scm:colorgrep.csh
Added
@@ -0,0 +1,11 @@ + +# color-grep initialization + +/usr/libexec/grepconf.sh -c +if ( $status == 1 ) then + exit +endif + +alias grep 'grep --color=auto' +alias egrep 'egrep --color=auto' +alias fgrep 'fgrep --color=auto'
View file
_service:tar_scm:grepconf.sh
Added
@@ -0,0 +1,11 @@ +#!/bin/sh + +case "$1" in + -c | --interactive-color) + ! grep -qsi "^COLOR.*none" /etc/GREP_COLORS + ;; + *) + echo >&2 "Invalid / no option passed, so far only -c | --interactive-color is supported." + exit 1 + ;; +esac
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2