Skip to content

Commit

Permalink
fill author field for mm2_bin_lib
Browse files Browse the repository at this point in the history
Signed-off-by: ozkanonur <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Mar 2, 2023
1 parent e15e666 commit 8bf6c13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions mm2src/mm2_bin_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[package]
name = "mm2_bin_lib"
version = "1.0.0-beta"
authors = ["James Lee", "Artem Pikulin", "Artem Grinblat", "Omar S.", "Onur Ozkan", "Alina Sharon", "Caglar Kaya", "Cipi", "Sergey Boiko", "Samuel Onoja", "Roman Sztergbaum", "Kadan Stadelmann <ca333@komodoplatform.com>"]
edition = "2018"
default-run = "mm2"

Expand Down
3 changes: 1 addition & 2 deletions mm2src/mm2_bin_lib/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ fn mm_version() -> String {

let mm_version_p = root().join("../../MM_VERSION");
let v_file = String::from_utf8(slurp(&mm_version_p)).unwrap();
let tag_from_ci = v_file.trim().to_string();

// if there is MM_VERSION file, that means CI wants to put a tag to version
if !v_file.is_empty() {
version = format!("{}_{}", version, tag_from_ci);
version = format!("{}_{}", version, v_file.trim().to_string());
} else {
let mut command = Command::new("git");
command.arg("log").arg("--pretty=format:%h").arg("-n1");
Expand Down
4 changes: 2 additions & 2 deletions mm2src/mm2_main/src/mm2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ pub fn mm2_main(version: String, datetime: String) {
}

if first_arg == Some("--version") || first_arg == Some("-v") || first_arg == Some("version") {
println!("AtomicDEX MarketMaker: {version}");
println!("AtomicDEX API: {version}");
return;
}

Expand All @@ -390,7 +390,7 @@ pub fn mm2_main(version: String, datetime: String) {
return;
}

log!("AtomicDEX MarketMaker {} DT {}", version, datetime);
log!("AtomicDEX API {} DT {}", version, datetime);

if let Err(err) = run_lp_main(first_arg, &|_| (), version, datetime) {
log!("{}", err);
Expand Down

0 comments on commit 8bf6c13

Please sign in to comment.