From: Clifford Wolf Date: Wed, 12 Jun 2013 08:42:59 +0000 (+0200) Subject: Renamed yosys-show temp files to be dot-files in the users home directory X-Git-Tag: yosys-0.2.0~575^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49293a182d19ad799ef129ecfb03ff72a2d11f0f;p=yosys.git Renamed yosys-show temp files to be dot-files in the users home directory --- diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc index 4ed4a95cb..cb5ea379d 100644 --- a/passes/cmds/show.cc +++ b/passes/cmds/show.cc @@ -517,7 +517,7 @@ struct ShowPass : public Pass { log(" more than one library.\n"); log("\n"); log(" -prefix \n"); - log(" generate .dot and .ps instead of yosys-show.{dot,ps}\n"); + log(" generate .dot and .ps instead of ~/.yosys_show.{dot,ps}\n"); log("\n"); log(" -color \n"); log(" assign the specified color to the specified wire. The object can be\n"); @@ -539,7 +539,7 @@ struct ShowPass : public Pass { log("When no is specified, SVG is used. When no and is\n"); log("specified, 'yosys-svgviewer' is used to display the schematic.\n"); log("\n"); - log("The generated output files are 'yosys-show.dot' and 'yosys-show.',\n"); + log("The generated output files are '~/.yosys_show.dot' and '~/.yosys_show.',\n"); log("unless another prefix is specified using -prefix .\n"); log("\n"); } @@ -553,7 +553,7 @@ struct ShowPass : public Pass { std::string format; std::string viewer_exe; - std::string prefix = "yosys-show"; + std::string prefix = stringf("%s/.yosys_show", getenv("HOME") ? getenv("HOME") : "."); std::vector libfiles; std::vector libs; uint32_t colorSeed = 0;