tazwok rev 523

Fixed python compiled files to be removed after files.list is made. Added perl_compiled_files_remove function to remove these files before files.list is made since these are only made when compiling.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 14 17:53:42 2011 +0000 (2011-05-14)
parents 4a8f8f35014e
children b04f3fe52b16
files tazwok
line diff
     1.1 --- a/tazwok	Sat May 14 13:51:21 2011 +0000
     1.2 +++ b/tazwok	Sat May 14 17:53:42 2011 +0000
     1.3 @@ -930,12 +930,19 @@
     1.4  	report end-step
     1.5  }
     1.6  
     1.7 -# Remove .pyc, .pyo, perllocal.pod and .packlist files from packages.
     1.8 +# Remove .pyc and .pyo files from packages.
     1.9  py_compiled_files_remove()
    1.10  {
    1.11 -	report step "Removing all .pyc, .pyo, perllocal.pod, and .packlist files from package"
    1.12 +	report step "Removing all .pyc and .pyo files from package"
    1.13  	find $fs -type f -name "*.pyc" -delete 2>/dev/null
    1.14  	find $fs -type f -name "*.pyo" -delete 2>/dev/null
    1.15 +	report end-step
    1.16 +}
    1.17 +
    1.18 +# Removing all perllocal.pod and .packlist files from package
    1.19 +perl_compiled_files_remove()
    1.20 +{
    1.21 +	report step "Removing all perllocal.pod and .packlist files from package"
    1.22  	find $fs -type f -name "perllocal.pod" -delete 2>/dev/null
    1.23  	find $fs -type f -name ".packlist" -delete 2>/dev/null
    1.24  	report end-step
    1.25 @@ -1068,7 +1075,7 @@
    1.26  			copy_generic_files
    1.27  		fi
    1.28  		look_for_cookopt !strip || strip_package
    1.29 -		py_compiled_files_remove
    1.30 +		perl_compiled_files_remove
    1.31  	else
    1.32  		echo "No package rules to gen $PACKAGE..." >&2
    1.33  		set_pkg_broken
    1.34 @@ -1116,6 +1123,8 @@
    1.35  		LAST_FILE="$file"
    1.36  	done > files.list
    1.37  	
    1.38 +	py_compiled_files_remove
    1.39 +	
    1.40  	# Next, check if something has changed in lib files.
    1.41  	if fgrep -q '.so' files.list; then
    1.42  		for rep in $INCOMING_REPOSITORY $PACKAGES_REPOSITORY \