Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
e4d2b3fb
Commit
e4d2b3fb
authored
Mar 26, 2014
by
Stephane Glondu
Browse files
Rename all tool modules to Tool_*, and their directory to "tool"
parent
291cb470
Changes
12
Hide whitespace changes
Inline
Side-by-side
_tags
View file @
e4d2b3fb
<**/*.{ml,mli,byte,native,odoc}>: debug, annot, thread, package(zarith), package(calendar), package(uuidm), package(cryptokit), package(atdgen), package(yojson)
<demo/**/*.{ml,mli,byte,native,odoc}>: package(lwt.unix), syntax(camlp4o), package(lwt.syntax)
<src/web/*.{ml,mli,byte,native,odoc}>: package(eliom.server), syntax(camlp4o), package(lwt.syntax), package(csv)
<src/
bin
/*>: binary
<src/
tool
/*>: binary
<stuff/*>: binary
myocamlbuild.ml
View file @
e4d2b3fb
...
...
@@ -27,7 +27,7 @@ let () = dispatch & function
|
After_rules
->
Pathname
.
define_context
"src/web"
[
"src/lib"
];
Pathname
.
define_context
"src/
bin
"
[
"src/lib"
];
Pathname
.
define_context
"src/
tool
"
[
"src/lib"
];
Pathname
.
define_context
"demo"
[
"src/lib"
];
Pathname
.
define_context
"stuff"
[
"src/lib"
];
Pathname
.
define_context
"."
[
"src/lib"
];
...
...
@@ -46,6 +46,6 @@ let () = dispatch & function
Cmd
(
S
[
A
"markdown"
;
P
(
env
"%.md"
);
Sh
">"
;
P
(
env
"%.html"
)])
);
copy_rule
"belenios-tool"
(
"src/
bin/
main"
^
exe_suffix
)
"belenios-tool"
;
copy_rule
"belenios-tool"
(
"src/
tool/tool_
main"
^
exe_suffix
)
"belenios-tool"
;
|
_
->
()
src/
bin/
credgen.ml
→
src/
tool/tool_
credgen.ml
View file @
e4d2b3fb
File moved
src/
bin/
credgen.mli
→
src/
tool/tool_
credgen.mli
View file @
e4d2b3fb
File moved
src/
bin/
election
_tool
.ml
→
src/
tool/tool_
election.ml
View file @
e4d2b3fb
...
...
@@ -240,7 +240,7 @@ module Run (P : PARAMS) : EMPTY = struct
|
Some
fn
->
(
match
load_from_file
(
fun
x
->
x
)
fn
with
|
Some
[
cred
]
->
let
hex
=
C
redgen
.
derive
e
.
e_params
.
e_uuid
cred
in
let
hex
=
Tool_c
redgen
.
derive
e
.
e_params
.
e_uuid
cred
in
Some
Z
.(
of_string_base
16
hex
mod
G
.
q
)
|
_
->
failwith
"invalid credential file"
)
...
...
src/
bin/
election
_tool
.mli
→
src/
tool/tool_
election.mli
View file @
e4d2b3fb
File moved
src/
bin/
main.ml
→
src/
tool/tool_
main.ml
View file @
e4d2b3fb
...
...
@@ -34,9 +34,9 @@ let () =
else
(
Arg
.
current
:=
1
;
match
Sys
.
argv
.
(
1
)
with
|
"trustee-keygen"
->
Tkeygen
.
main
()
|
"election"
->
E
lection
_tool
.
main
()
|
"credgen"
->
C
redgen
.
main
()
|
"mkelection"
->
M
kelection
.
main
()
|
"trustee-keygen"
->
T
ool_t
keygen
.
main
()
|
"election"
->
Tool_e
lection
.
main
()
|
"credgen"
->
Tool_c
redgen
.
main
()
|
"mkelection"
->
Tool_m
kelection
.
main
()
|
_
->
usage
()
)
src/
bin/
main.mli
→
src/
tool/tool_
main.mli
View file @
e4d2b3fb
File moved
src/
bin/
mkelection.ml
→
src/
tool/tool_
mkelection.ml
View file @
e4d2b3fb
File moved
src/
bin/
mkelection.mli
→
src/
tool/tool_
mkelection.mli
View file @
e4d2b3fb
File moved
src/
bin/
tkeygen.ml
→
src/
tool/tool_
tkeygen.ml
View file @
e4d2b3fb
File moved
src/
bin/
tkeygen.mli
→
src/
tool/tool_
tkeygen.mli
View file @
e4d2b3fb
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment