Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37767724
en ru br
ALT Linux repositórios
S:8.4.4-alt1
5.0: 8.4-alt6
4.1: 8.4-alt6
4.0: 8.4-alt6
3.0: 8.4-alt4

Group :: Desenvolvimento/Tcl
RPM: tclx

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: tclx-8.4-buildhelp.patch
Download


diff -uNr tclx/library/buildhelp.tcl tclx-patched/library/buildhelp.tcl
--- tclx/library/buildhelp.tcl	2001-10-25 02:31:48 +0300
+++ tclx-patched/library/buildhelp.tcl	2002-10-03 14:39:55 +0300
@@ -396,9 +396,24 @@
    global nroffScanCT scriptScanCT nroffHeader
 
    set fileName [file tail $pathName]
-
    set nroffHeader {}
-   set manPageFH [open $pathName r]
+   set manPageFH [
+		  switch -exact -- [file extension $pathName] {
+		      .bz2 {
+			  open |[concat /bin/bzcat $pathName |& cat] r
+		      }
+		      .gz {
+			  open |[concat /bin/zcat $pathName |& cat] r
+		      }
+		      .n {
+			  open $pathName r
+		      }
+		      default {
+			  puts stderr "unknown compression method on $pathName, skipping"
+		      }
+		  }
+		 ]
+
    set matchInfo(fileName) [file tail $pathName]
 
    echo "    scanning $pathName"
@@ -497,7 +512,7 @@
     }
     set briefHelpFH [open "|sort > $helpDir/$briefFile" w]
 
-    foreach manFile [glob $sourceFiles] {
+    foreach manFile [glob -directory $sourceFiles -types f *] {
         set ext [file extension $manFile]
         if {$ext == ".tcl" || $ext == ".tlib"} {
             set status [catch {ProcessTclScript $manFile} msg]
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009