diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-02 04:34:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-02 04:34:52 +0000 |
commit | df4ca37f5d6eb8a977d7be836c3e9683330a67a7 (patch) | |
tree | 0f722816b2da461ce0a75cd2479b6bee16a150b8 /strip_files | |
parent | 883e695e886279029ee5e6892295991df9bfc2ec (diff) | |
download | spec-helper-df4ca37f5d6eb8a977d7be836c3e9683330a67a7.tar spec-helper-df4ca37f5d6eb8a977d7be836c3e9683330a67a7.tar.gz spec-helper-df4ca37f5d6eb8a977d7be836c3e9683330a67a7.tar.bz2 spec-helper-df4ca37f5d6eb8a977d7be836c3e9683330a67a7.tar.xz spec-helper-df4ca37f5d6eb8a977d7be836c3e9683330a67a7.zip |
speed up regexpes
Diffstat (limited to 'strip_files')
-rwxr-xr-x | strip_files | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/strip_files b/strip_files index 743e426..0afe4d7 100755 --- a/strip_files +++ b/strip_files @@ -34,7 +34,7 @@ sub testfile { if (m/.*\.so.*?/) { # Ok, do the expensive test. my $type=`file $_`; - if ($type=~m/.*ELF.*shared.*/) { + if ($type=~m/.*ELF.*shared/) { push @shared_libs, $fn; return; } @@ -45,7 +45,7 @@ sub testfile { if ($mode & 0111) { # Ok, expensive test. my $type=`file $_`; - if ($type=~m/.*ELF.*executable.*/) { + if ($type=~m/.*ELF.*executable/) { push @executables, $fn; return; } |