Better output

This commit is contained in:
2019-12-23 10:50:05 +09:00
parent b01d09e477
commit b5c072d0b0
5 changed files with 22 additions and 36 deletions
+6 -17
View File
@@ -38,7 +38,6 @@ unpack(OS, ZompDir) ->
add_launcher({unix, linux}, ZompDir) ->
add_unix_link(ZompDir),
ok = io:format("Should attempt a FreeDesktop icon addition here.~n"),
halt(0);
add_launcher({unix, _}, ZompDir) ->
add_unix_link(ZompDir),
@@ -74,27 +73,17 @@ add_unix_link(ZompDir) ->
true ->
"A link to ~ts has been created at ~ts.~n"
"~ts seems to be in $PATH already.~n"
"You should be able to run any Zomp/ZX program as a normal shell "
"command by typing `zx`, or with an Erlang shell attached by "
"typing `zxh` from anywhere in your system.~n"
"Creating launchers to the link that start specific programs may be "
"conveinent.~n"
"A desktop launcher would need to run the command:~n"
" zx run [some_program]~n"
"Or alternately (if ~~/bin/ is not in your launcher's $PATH):~n"
" ~ts run [some_program]~n";
"You should be able to run any Zomp/ZX program as a normal shell~n"
"command by typing `zx`, or with an Erlang shell attached by~n"
"typing `zxh` from anywhere in your system.~n";
false ->
"A link to ~ts has been created at ~ts. "
"~ts seems to be NOT in your $PATH. "
"You will need to add that to $PATH if you want to be able to run "
"zx by simply typing `zx` (or zxh to attach an Erlang shell) from "
"You will need to add that to $PATH if you want to be able to run~n"
"zx by simply typing `zx` (or zxh to attach an Erlang shell) from~n"
"anywhere in your system.~n"
"Creating launchers to the link that start specific programs may be "
"conveinent.~n"
"A desktop launcher would need to run the command:~n"
" ~ts run [some_program]~n"
end,
io:format(Message, [Target, Link, HomeBin, Target]).
io:format(Message, [Target, Link, HomeBin]).
-spec os_cmd(Command :: string()) -> ok.