]> matita.cs.unibo.it Git - helm.git/commitdiff
added support for compressed files
authorLuca Padovani <luca.padovani@unito.it>
Tue, 30 Jan 2001 09:18:06 +0000 (09:18 +0000)
committerLuca Padovani <luca.padovani@unito.it>
Tue, 30 Jan 2001 09:18:06 +0000 (09:18 +0000)
helm/interface/uris_of_filenames.pl

index e06ac822a0eb50a1a29c3802efb99752022d0954..019730bee5b39a948d79308e886f8e23bb735d09 100755 (executable)
@@ -4,12 +4,14 @@ while(<STDIN>) {
    chomp;
    split / /;
    for (@_) {
+      $GZSUFF = "";
+      if (/.gz$/)
+       { s/.gz$//; $GZSUFF = " gz" if ($ARGV[0] == "-gz"); }
       if (/.*\.(con|var|ind)(\.types)?\.xml/)
        { s/\./cic:/; }
       elsif (/.*\.theory\.xml/)
        { s/\./theory:/; }
       s/\.xml//;
-      print;
-      print "\n";
+      print $_.$GZSUFF."\n";
  }
 }