mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Revert "Revert "Pull in latest upstream n2 fixes""
Was some debug code in my status hiding patch; commit link updated.
This commit is contained in:
parent
1100bb6fe8
commit
25cab1c67a
2 changed files with 6 additions and 9 deletions
|
@ -22,12 +22,17 @@ impl Build {
|
|||
)
|
||||
.unwrap();
|
||||
|
||||
writeln!(&mut buf, "builddir = {}", self.buildroot.as_str()).unwrap();
|
||||
writeln!(
|
||||
&mut buf,
|
||||
"runner = $builddir/rust/release/{}",
|
||||
with_exe("runner")
|
||||
)
|
||||
.unwrap();
|
||||
for (key, value) in &self.variables {
|
||||
writeln!(&mut buf, "{} = {}", key, value).unwrap();
|
||||
}
|
||||
buf.push('\n');
|
||||
|
||||
for (key, value) in &self.pools {
|
||||
writeln!(&mut buf, "pool {}\n depth = {}", key, value).unwrap();
|
||||
|
@ -49,14 +54,6 @@ impl Build {
|
|||
|
||||
buf.push_str(&self.trailing_text);
|
||||
|
||||
buf = buf.replace("$builddir", self.buildroot.as_str());
|
||||
for (key, value) in &self.variables {
|
||||
buf = buf.replace(
|
||||
&format!("${key}"),
|
||||
&value.replace("$builddir", self.buildroot.as_str()),
|
||||
);
|
||||
}
|
||||
|
||||
buf
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
cargo install --git https://github.com/ankitects/n2.git --rev 56202604d4c541524b82381162eafae4290fdd22
|
||||
cargo install --git https://github.com/ankitects/n2.git --rev d6122da0a924525439a4edc2e66cba61560bbc98
|
||||
|
|
Loading…
Reference in a new issue