summaryrefslogtreecommitdiff
path: root/test/rebar_eunit_SUITE_data/deflate
blob: 368228f3e85ffda4701f27c1901f2b5b73d3586f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env escript

main(["basic_app"]) ->
  case filelib:is_dir("basic_app") of
    true  -> zip:create("basic_app.zip", ["basic_app"]), halt(0);
    false -> io:format("unable to locate basic_app directory~n", []), halt(1)
  end;
main(["multi_app"]) ->
  case filelib:is_dir("multi_app") of
    true  -> zip:create("multi_app.zip", ["multi_app"]), halt(0);
    false -> io:format("unable to locate multi_app directory~n", []), halt(1)
  end,
  halt(0);
main(_) ->
  io:format("usage: deflate basic_app | multi_app~n", []), halt(1).