Commit 69c1a69c by Maarten L. Hekkelman

Write compressed output, if requested

parent 93e9a923
...@@ -164,9 +164,13 @@ int d_main(int argc, const char *argv[]) ...@@ -164,9 +164,13 @@ int d_main(int argc, const char *argv[])
if (fmt.empty() and not output.empty()) if (fmt.empty() and not output.empty())
{ {
if (output.extension() == ".gz" or output.extension() == ".xz") if (output.extension() == ".gz" or output.extension() == ".xz")
output = output.stem(); {
if (output.stem().extension() == ".dssp")
if (output.extension() == ".dssp") fmt = "dssp";
else
fmt = "cif";
}
else if (output.extension() == ".dssp")
fmt = "dssp"; fmt = "dssp";
else else
fmt = "cif"; fmt = "cif";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment