Better output
This commit is contained in:
+6
-17
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user