aboutsummaryrefslogtreecommitdiffstats
path: root/strip_files
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-08-02 04:36:04 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-08-02 04:36:04 +0000
commite5538dd316c4dd18212454121adc75ca660d14f1 (patch)
tree3138fdf9a2f3d4435579064464d2888878736d50 /strip_files
parent9a3020b6394bff3b3ef50ff75e48bf34eef8fd15 (diff)
downloadspec-helper-e5538dd316c4dd18212454121adc75ca660d14f1.tar
spec-helper-e5538dd316c4dd18212454121adc75ca660d14f1.tar.gz
spec-helper-e5538dd316c4dd18212454121adc75ca660d14f1.tar.bz2
spec-helper-e5538dd316c4dd18212454121adc75ca660d14f1.tar.xz
spec-helper-e5538dd316c4dd18212454121adc75ca660d14f1.zip
further regexpes speedup
Diffstat (limited to 'strip_files')
-rwxr-xr-xstrip_files8
1 files changed, 4 insertions, 4 deletions
diff --git a/strip_files b/strip_files
index 3e70d13..b41a91b 100755
--- a/strip_files
+++ b/strip_files
@@ -36,9 +36,9 @@ sub testfile() {
}
# Does its filename look like a shared library?
- if (m/.*\.so.*?/) {
+ if (m/\.so/) {
# Ok, do the expensive test.
- if (expensive_test($_) =~ m/.*ELF.*shared/) {
+ if (expensive_test($_) =~ m/ELF.*shared/) {
push @executables, $fn;
return;
}
@@ -48,14 +48,14 @@ sub testfile() {
my (undef, undef, $mode, undef) = stat(_);
if ($mode & 0111) {
# Ok, expensive test.
- if (expensive_test($_) =~ m/.*ELF.*executable/) {
+ if (expensive_test($_) =~ m/ELF.*executable/) {
push @executables, $fn;
return;
}
}
# Is it a static library, and not a debug library?
- if (m/lib.*\.a/ && ! m/.*_g\.a/) {
+ if (m/lib.*\.a/ && ! m/_g\.a/) {
push @static_libs, $fn;
return;
}