X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Finterface%2Furis_of_filenames.pl;h=019730bee5b39a948d79308e886f8e23bb735d09;hb=1c7fb836e2af4f2f3d18afd0396701f2094265ff;hp=e06ac822a0eb50a1a29c3802efb99752022d0954;hpb=458ba0f68b06b74a3d947c6496dc23a509715a89;p=helm.git diff --git a/helm/interface/uris_of_filenames.pl b/helm/interface/uris_of_filenames.pl index e06ac822a..019730bee 100755 --- a/helm/interface/uris_of_filenames.pl +++ b/helm/interface/uris_of_filenames.pl @@ -4,12 +4,14 @@ while() { 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"; } }