diff options
author | Chmouel Boudjnah <chmouel@mandriva.org> | 2000-04-07 14:52:32 +0000 |
---|---|---|
committer | Chmouel Boudjnah <chmouel@mandriva.org> | 2000-04-07 14:52:32 +0000 |
commit | c24ada7aae352c08555c443d5027b4d92911354d (patch) | |
tree | 586a7035c7c06a685833e0b62c9e3f8fc8cfab65 /compress_files | |
parent | ac00a35b2294a9c17dd2eb2097a26f1ae4dcfc22 (diff) | |
download | spec-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-x | compress_files | 6 |
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("$_"); } } |