aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/opt_types.sh6
-rwxr-xr-xtools/update-deps-releases.pl2
-rw-r--r--tools/xml_compress_gen.erl2
3 files changed, 8 insertions, 2 deletions
diff --git a/tools/opt_types.sh b/tools/opt_types.sh
index 8de6d8945..92cd943d8 100755
--- a/tools/opt_types.sh
+++ b/tools/opt_types.sh
@@ -524,6 +524,8 @@ fold_opt(File, Fun, Acc, AbsCode) ->
Fun(File, {#state.defaults, Form}, Acc1);
{attribute, {spec, {spec, {{options, 0}, Spec}}}} ->
Fun(File, {#state.specs, hd(Spec)}, Acc1);
+ {attribute, {spec, {{options, 0}, Spec}}} ->
+ Fun(File, {#state.specs, hd(Spec)}, Acc1);
_ ->
Acc1
end
@@ -539,6 +541,8 @@ fold_mod_opt(File, Fun, Acc, AbsCode) ->
Fun(File, {#state.mod_defaults, Form}, Acc1);
{attribute, {spec, {spec, {{mod_options, 1}, Spec}}}} ->
Fun(File, {#state.mod_specs, hd(Spec)}, Acc1);
+ {attribute, {spec, {{mod_options, 1}, Spec}}} ->
+ Fun(File, {#state.mod_specs, hd(Spec)}, Acc1);
_ ->
Acc1
end
@@ -572,6 +576,8 @@ is_behaviour(AbsCode, Mod) ->
{attribute, {Attr, {_, Mod}}}
when Attr == behaviour orelse Attr == behavior ->
true;
+ {attribute, {behaviour, Mod}} ->
+ true;
_ ->
false
end
diff --git a/tools/update-deps-releases.pl b/tools/update-deps-releases.pl
index 4f7e55972..b450bd69b 100755
--- a/tools/update-deps-releases.pl
+++ b/tools/update-deps-releases.pl
@@ -413,7 +413,7 @@ while (1) {
my $cmd = show_commands($old_deps ? (U => "Update dependency") : (),
$changed_deps ? (T => "Tag new release") : (),
@operations ? (A => "Apply changes") : (),
- R => "Refresh repositiories",
+ R => "Refresh repositories",
H => "What release to Hex",
E => "Exit");
last if $cmd eq "E";
diff --git a/tools/xml_compress_gen.erl b/tools/xml_compress_gen.erl
index 5b43c5925..157e6cc8a 100644
--- a/tools/xml_compress_gen.erl
+++ b/tools/xml_compress_gen.erl
@@ -4,7 +4,7 @@
%% Created : 14 Sep 2018 Pawel Chmielowski
%%
%%
-%% ejabberd, Copyright (C) 2002-2021 ProcessOne
+%% ejabberd, Copyright (C) 2002-2022 ProcessOne
%%
%% This program is free software; you can redistribute it and/or
%% modify it under the terms of the GNU General Public License as