You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 line
503 B

  1. #!/usr/bin/env escript
  2. main(["basic_app"]) ->
  3. case filelib:is_file("basic_app.zip") of
  4. true -> zip:unzip("basic_app.zip"), halt(0);
  5. false -> io:format("unable to locate basic_app.zip~n", []), halt(1)
  6. end;
  7. main(["multi_app"]) ->
  8. case filelib:is_file("multi_app.zip") of
  9. true -> zip:unzip("multi_app.zip"), halt(0);
  10. false -> io:format("unable to locate multi_app.zip~n", []), halt(1)
  11. end,
  12. halt(0);
  13. main(_) ->
  14. io:format("usage: inflate basic_app | multi_app~n", []), halt(1).