!31 config color alias for z*grep
From: @renxichen Reviewed-by: @xiezhipeng1 Signed-off-by: @xiezhipeng1
This commit is contained in:
commit
e55bb23bf0
9
colorzgrep.csh
Normal file
9
colorzgrep.csh
Normal file
@ -0,0 +1,9 @@
|
||||
t -f /usr/libexec/grepconf.sh
|
||||
if ( $status == 1 ) exit
|
||||
|
||||
/usr/libexec/grepconf.sh -c
|
||||
if ( $status == 1 ) exit
|
||||
|
||||
alias zgrep 'zgrep --color=auto'
|
||||
alias zfgrep 'zfgrep --color=auto'
|
||||
alias zegrep 'zegrep --color=auto'
|
||||
6
colorzgrep.sh
Normal file
6
colorzgrep.sh
Normal file
@ -0,0 +1,6 @@
|
||||
[ -f /usr/libexec/grepconf.sh ] || return
|
||||
|
||||
/usr/libexec/grepconf.sh -c || return
|
||||
alias zgrep='zgrep --color=auto' 2>/dev/null
|
||||
alias zfgrep='zfgrep --color=auto' 2>/dev/null
|
||||
alias zegrep='zegrep --color=auto' 2>/dev/null
|
||||
17
gzip.spec
17
gzip.spec
@ -1,11 +1,13 @@
|
||||
Name: gzip
|
||||
Version: 1.11
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: A data compression utility
|
||||
|
||||
License: GPLv3
|
||||
URL: https://www.gnu.org/software/gzip
|
||||
Source0: https://ftp.gnu.org/gnu/gzip/gzip-%{version}.tar.xz
|
||||
Source1: colorzgrep.csh
|
||||
Source2: colorzgrep.sh
|
||||
|
||||
Patch6000: gzip-l-now-outputs-accurate-size.patch
|
||||
Patch6001: doc-document-gzip-l-change.patch
|
||||
@ -51,6 +53,12 @@ rm -rf %RPM_BUILD_ROOT
|
||||
# ncompress provides uncompress, may cause conflict.
|
||||
rm -f %{buildroot}%{_bindir}/uncompress
|
||||
|
||||
# config color alias for z*grep
|
||||
%global profiledir %{_sysconfdir}/profile.d
|
||||
mkdir -p %{buildroot}%{profiledir}
|
||||
install -p -m 644 %{SOURCE1} %{buildroot}%{profiledir}
|
||||
install -p -m 644 %{SOURCE2} %{buildroot}%{profiledir}
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
@ -59,6 +67,7 @@ make check
|
||||
%doc AUTHORS ChangeLog README
|
||||
%license COPYING
|
||||
%{_bindir}/*
|
||||
%{profiledir}/*
|
||||
%exclude %{_infodir}/dir
|
||||
|
||||
%files help
|
||||
@ -67,6 +76,12 @@ make check
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Mon Jun 20 2022 renhognxun <renhongxun@h-partners.com> - 1.11-5
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- config color alias for z*grep
|
||||
|
||||
* Fri Apr 22 2022 shixuantong <shixuantong@h-partners.com> - 1.11-4
|
||||
- Type:cves
|
||||
- ID:CVE-2022-1271
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user