]> git.pld-linux.org Git - packages/grep.git/commitdiff
restored shrc.d/grep.c?sh, there was no need for reverting, just
authorTomasz Pala <gotar@pld-linux.org>
Fri, 5 Aug 2016 16:32:03 +0000 (18:32 +0200)
committerTomasz Pala <gotar@pld-linux.org>
Fri, 5 Aug 2016 16:32:03 +0000 (18:32 +0200)
commenting out by default: c1edd1016a5175e4190df07a0c81b81f66749b4c

grep.spec

index a61356d51c9204a6b8ccc8c17645d1764c354b59..b0920fe189a2688a7d8ed519591cd3577ae6b0dc 100644 (file)
--- a/grep.spec
+++ b/grep.spec
@@ -110,6 +110,7 @@ kullanılır.
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/shrc.d
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -119,6 +120,13 @@ echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
 
 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
+cat << EOF >$RPM_BUILD_ROOT/etc/shrc.d/grep.sh
+#alias grep='/bin/grep --binary-files=without-match --devices=skip --directories=skip --color=auto'
+EOF
+cat << EOF >$RPM_BUILD_ROOT/etc/shrc.d/grep.csh
+#alias grep '/bin/grep --binary-files=without-match --devices=skip --directories=skip --color=auto'
+EOF
+
 %find_lang %{name}
 
 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
@@ -137,6 +145,7 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc NEWS README ChangeLog TODO
+%config(noreplace) %verify(not md5 mtime size) /etc/shrc.d/grep.*sh
 %attr(755,root,root) %{_bindir}/egrep
 %attr(755,root,root) %{_bindir}/fgrep
 %attr(755,root,root) %{_bindir}/grep
This page took 0.235079 seconds and 4 git commands to generate.