Add uninstall script; fix typos

This commit is contained in:
2019-12-16 16:58:33 +09:00
parent ec39a1b1e9
commit 16549b5d0b
57 changed files with 42 additions and 29 deletions
+1 -1
View File
@@ -1 +1 @@
0.2.1
0.3.0
@@ -24,7 +24,7 @@
%%% @end
-module(zx).
-vsn("0.2.1").
-vsn("0.3.0").
-behavior(application).
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
@@ -9,7 +9,7 @@
%%% @end
-module(zx_auth).
-vsn("0.2.1").
-vsn("0.3.0").
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
-license("GPL-3.0").
@@ -7,7 +7,7 @@
%%% @end
-module(zx_conn).
-vsn("0.2.1").
-vsn("0.3.0").
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
-license("GPL-3.0").
@@ -5,7 +5,7 @@
%%% @end
-module(zx_conn_sup).
-vsn("0.2.1").
-vsn("0.3.0").
-behavior(supervisor).
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
@@ -138,7 +138,7 @@
%%% @end
-module(zx_daemon).
-vsn("0.2.1").
-vsn("0.3.0").
-behavior(gen_server).
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
@@ -2435,6 +2435,7 @@ cx_store_cache(#cx{realms = Realms, hosts = Hosts}) ->
cx_write_cache({Realm, #rmeta{serial = Serial}}) ->
CacheFile = cx_realm_cache(Realm),
CacheMeta = [{serial, Serial}],
ok = filelib:ensure_dir(CacheFile),
zx_lib:write_terms(CacheFile, CacheMeta).
@@ -8,7 +8,7 @@
%%% @end
-module(zx_key).
-vsn("0.2.1").
-vsn("0.3.0").
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
-license("GPL-3.0").
@@ -10,7 +10,7 @@
%%% @end
-module(zx_lib).
-vsn("0.2.1").
-vsn("0.3.0").
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
-license("GPL-3.0").
@@ -6,7 +6,7 @@
%%% @end
-module(zx_local).
-vsn("0.2.1").
-vsn("0.3.0").
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
-license("GPL-3.0").
@@ -5,7 +5,7 @@
%%% @end
-module(zx_net).
-vsn("0.2.1").
-vsn("0.3.0").
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
-license("GPL-3.0").
@@ -8,7 +8,7 @@
%%% @end
-module(zx_peer).
-vsn("0.2.1").
-vsn("0.3.0").
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
-license("GPL-3.0").
@@ -9,7 +9,7 @@
%%% @end
-module(zx_peer_man).
-vsn("0.2.1").
-vsn("0.3.0").
-behavior(gen_server).
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
@@ -6,7 +6,7 @@
%%% @end
-module(zx_peer_sup).
-vsn("0.2.1").
-vsn("0.3.0").
-behaviour(supervisor).
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
@@ -10,7 +10,7 @@
%%% @end
-module(zx_peers).
-vsn("0.2.1").
-vsn("0.3.0").
-behavior(supervisor).
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
@@ -5,7 +5,7 @@
%%% @end
-module(zx_proxy).
-vsn("0.2.1").
-vsn("0.3.0").
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
-license("GPL-3.0").
@@ -5,7 +5,7 @@
%%% @end
-module(zx_sup).
-vsn("0.2.1").
-vsn("0.3.0").
-behavior(supervisor).
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
@@ -6,7 +6,7 @@
%%% @end
-module(zx_tty).
-vsn("0.2.1").
-vsn("0.3.0").
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
-license("GPL-3.0").
@@ -7,7 +7,7 @@
%%% @end
-module(zx_zsp).
-vsn("0.2.1").
-vsn("0.3.0").
-author("Craig Everett <zxq9@zxq9.com>").
-copyright("Craig Everett <zxq9@zxq9.com>").
-license("GPL-3.0").
@@ -292,11 +292,10 @@ resign(_, _, _) ->
resign2(Realm, KeyName, Key, MetaBin, TarGZ) ->
case zx_lib:b_to_ts(MetaBin) of
{ok, Meta} -> resign3(Realm, KeyName, Key, Meta, TarGZ);
{ok, _} -> {error, bad_realm};
error -> {error, bad_zsp}
end.
resign3(Realm, KeyName, Key, Meta = #{package_id = {_, Name, Version}}, TarGZ) ->
resign3(Realm, KeyName, Key, Meta = #{package_id := {_, Name, Version}}, TarGZ) ->
NewMeta = Meta#{package_id := {Realm, Name, Version}, key_name := KeyName},
MetaBin = term_to_binary(NewMeta),
MetaSize = byte_size(MetaBin),
+5 -1
View File
@@ -1,6 +1,10 @@
#!/bin/bash
. "$HOME"/.bash_profile
if [ -f "$HOME/.bash_profile" ]
then
. "$HOME"/.bash_profile
fi
export ZOMP_DIR="${ZOMP_DIR:-$HOME/zomp}"
export ZX_VERSION=$(cat "$ZOMP_DIR/etc/version.txt")
export ZX_DIR="$ZOMP_DIR/lib/otpr/zx/$ZX_VERSION"
+5 -1
View File
@@ -1,6 +1,10 @@
#!/bin/sh
. "$HOME"/.bash_profile
if [ -f "$HOME/.bash_profile" ]
then
. "$HOME"/.bash_profile
fi
export ZOMP_DIR="${ZOMP_DIR:-$HOME/zomp}"
export ZX_VERSION=$(cat "$ZOMP_DIR/etc/version.txt")
export ZX_DIR="$ZOMP_DIR/lib/otpr/zx/$ZX_VERSION"