aboutsummaryrefslogtreecommitdiffstats
path: root/compress_files
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>2000-04-07 14:52:32 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>2000-04-07 14:52:32 +0000
commitc24ada7aae352c08555c443d5027b4d92911354d (patch)
tree586a7035c7c06a685833e0b62c9e3f8fc8cfab65 /compress_files
parentac00a35b2294a9c17dd2eb2097a26f1ae4dcfc22 (diff)
downloadspec-helper-c24ada7aae352c08555c443d5027b4d92911354d.tar
spec-helper-c24ada7aae352c08555c443d5027b4d92911354d.tar.gz
spec-helper-c24ada7aae352c08555c443d5027b4d92911354d.tar.bz2
spec-helper-c24ada7aae352c08555c443d5027b4d92911354d.tar.xz
spec-helper-c24ada7aae352c08555c443d5027b4d92911354d.zip
Remove orphan link only for manpage.
Diffstat (limited to 'compress_files')
-rwxr-xr-xcompress_files6
1 files changed, 3 insertions, 3 deletions
diff --git a/compress_files b/compress_files
index 2f43706..2550b95 100755
--- a/compress_files
+++ b/compress_files
@@ -180,9 +180,9 @@ while (<FIND>) {
if (! -e "$directory/$linkval" && -e "$directory/$linkval.bz2") {
system("rm","-f",$_);
system("ln","-sf","$linkval.bz2","$_.bz2");
- } elsif (! -e "$directory/$linkval" && ! -e "$directory/linkval.bz2" ) {
- #Bad link go on nowhere (any better idea) ?
- unlink("$_");
+ } elsif (! -e "$directory/$linkval" && ! -e "$directory/linkval.bz2" && $directory =~ m|man/|) {
+ #Bad link go on nowhere (any better idea) ?
+ unlink("$_");
}
}