#! /usr/bin/env escript -mode(compile). main(_) -> {ok, BV} = file:read_file("zomp/etc/version.txt"), Version = string:strip(binary_to_list(BV), both, $\n), Tar = "zomp.tar.gz", ok = erl_tar:create(Tar, ["zomp"], [compressed]), Zip = "zx-" ++ Version ++ ".zip", ZipFiles = ["install.escript", "install_unix", "uninstall_unix", "README.md", "README.install", "LICENSE", Tar], {ok, Zip} = zip:create(Zip, ZipFiles), ok = file:delete(Tar), ok = io:format("~ts~n", [Zip]), halt(0).