diff options
author | Chmouel Boudjnah <chmouel@mandriva.org> | 2000-07-20 19:07:22 +0000 |
---|---|---|
committer | Chmouel Boudjnah <chmouel@mandriva.org> | 2000-07-20 19:07:22 +0000 |
commit | 495cadc6ef6c09b355b4da7f6f1354e89f643133 (patch) | |
tree | 43e3ae382456363bcf28796aa13b5a75195cbe6e | |
parent | e8891286f398d80faeec3593b68e15e667947c56 (diff) | |
download | spec-helper-495cadc6ef6c09b355b4da7f6f1354e89f643133.tar spec-helper-495cadc6ef6c09b355b4da7f6f1354e89f643133.tar.gz spec-helper-495cadc6ef6c09b355b4da7f6f1354e89f643133.tar.bz2 spec-helper-495cadc6ef6c09b355b4da7f6f1354e89f643133.tar.xz spec-helper-495cadc6ef6c09b355b4da7f6f1354e89f643133.zip |
Clean up.
-rwxr-xr-x | strip_files | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/strip_files b/strip_files index 1b884a9..1178ad2 100755 --- a/strip_files +++ b/strip_files @@ -16,9 +16,10 @@ use File::Find; # for use by File::Find. It'll fill the following 3 arrays with anything # it finds: my (@shared_libs, @executables, @static_libs); -my $exclude_files=defined($ENV{EXCLUDE_FROM_STRIP}) ? split(' ',$ENV{EXCLUDE_FROM_STRIP}) : (); +my $exclude_files=defined($ENV{EXCLUDE_FROM_STRIP}) ? split(' ',$ENV{EXCLUDE_FROM_STRIP}) : undef; sub testfile { + return if -l $_ or -d $_; # Skip directories and symlinks always. $fn="$File::Find::dir/$_"; @@ -76,8 +77,4 @@ foreach (@executables) { system("strip","--remove-section=.comment","--remove-section=.note",$_); } -# foreach (@static_libs) { -# system("strip","--strip-debug",$_); -# } - # strip_files ends here |