cookutils rev 117
Remove also Perl compiled files (after files.list creation so there are under tazpkg control)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 09 14:02:11 2011 +0200 (2011-05-09) |
parents | 47705cb85d12 |
children | 67b07b353191 |
files | cook |
line diff
1.1 --- a/cook Mon May 09 12:08:20 2011 +0200 1.2 +++ b/cook Mon May 09 14:02:11 2011 +0200 1.3 @@ -334,11 +334,17 @@ 1.4 find $fs -name "*.a" -exec strip --strip-debug '{}' 2>/dev/null \; 1.5 status 1.6 1.7 - # Remove .pyc, .pyo, perllocal.pod and .packlist files from packages. 1.8 - if echo "$DEPENDS" | fgrep "python"; then 1.9 + # Remove Python .pyc and .pyo from packages. 1.10 + if echo "$DEPENDS" | fgrep -q "python"; then 1.11 gettext "Removing Python compiled files..." 1.12 find $fs -type f -name "*.pyc" -delete 2>/dev/null 1.13 find $fs -type f -name "*.pyo" -delete 2>/dev/null 1.14 + status 1.15 + fi 1.16 + 1.17 + # Remove Perl perllocal.pod and .packlist from packages. 1.18 + if echo "$DEPENDS" | fgrep -q "perl"; then 1.19 + gettext "Removing Perl compiled files..." 1.20 find $fs -type f -name "perllocal.pod" -delete 2>/dev/null 1.21 find $fs -type f -name ".packlist" -delete 2>/dev/null 1.22 status