diff options
author | Chmouel Boudjnah <chmouel@mandriva.org> | 2000-04-06 02:19:16 +0000 |
---|---|---|
committer | Chmouel Boudjnah <chmouel@mandriva.org> | 2000-04-06 02:19:16 +0000 |
commit | 75847ab962eb08422be23aa382ef3486e4851729 (patch) | |
tree | 670a6c909b72e1545233c8796a3f08d81705e08f /compress_files | |
parent | bf8e93f6acfed54cdec2d23613a20de0e28e5430 (diff) | |
download | spec-helper-75847ab962eb08422be23aa382ef3486e4851729.tar spec-helper-75847ab962eb08422be23aa382ef3486e4851729.tar.gz spec-helper-75847ab962eb08422be23aa382ef3486e4851729.tar.bz2 spec-helper-75847ab962eb08422be23aa382ef3486e4851729.tar.xz spec-helper-75847ab962eb08422be23aa382ef3486e4851729.zip |
When we find an orphan man pages, erase it (any better idea ?)
Diffstat (limited to 'compress_files')
-rwxr-xr-x | compress_files | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compress_files b/compress_files index 2112765..a2ffc17 100755 --- a/compress_files +++ b/compress_files @@ -172,7 +172,7 @@ foreach (keys %hardlinks) { } # Fix up symlinks that were pointing to the uncompressed files. -open (FIND,"find $RPM_BUILD_ROOT -type l |"); +open (FIND,"find usr/man -type l |"); while (<FIND>) { chomp; ($directory)=m:(.*)/:; @@ -180,7 +180,11 @@ 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("$_"); } + } # compress_files ends here |