]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/interface/uris_of_filenames.pl
- the mathql interpreter is not helm-dependent any more
[helm.git] / helm / interface / uris_of_filenames.pl
index d738f51b746e379b0c597244f17a1904e45a0ec2..019730bee5b39a948d79308e886f8e23bb735d09 100755 (executable)
@@ -4,12 +4,14 @@ while(<STDIN>) {
    chomp;
    split / /;
    for (@_) {
-      if (/.*\.(con|var|ind)\.xml/)
+      $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";
  }
 }