wok diff grep/receipt @ rev 24788

grep: add post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 21 09:31:32 2022 +0000 (2022-03-21)
parents 6c76b35274f9
children 8b5c3df6e968
line diff
     1.1 --- a/grep/receipt	Mon Mar 07 16:56:05 2022 +0100
     1.2 +++ b/grep/receipt	Mon Mar 21 09:31:32 2022 +0000
     1.3 @@ -38,6 +38,15 @@
     1.4  	cook_copy_folders	bin
     1.5  }
     1.6  
     1.7 +post_install()
     1.8 +{
     1.9 +	for i in grep egrep fgrep
    1.10 +	  do
    1.11 +		[ "$(readlink "$1/bin/$i")" = "busybox" ] &&
    1.12 +		rm -f "$1/bin/$i"
    1.13 +	  done
    1.14 +}
    1.15 +
    1.16  post_remove()
    1.17  {
    1.18  	for i in grep egrep fgrep