added file header
This commit is contained in:
parent
cdbb2e15a2
commit
fcda2650b0
1 changed files with 5 additions and 3 deletions
|
@ -135,8 +135,10 @@ fn main() {
|
||||||
let conf = toml::from_str::<Table>(&conf_file)
|
let conf = toml::from_str::<Table>(&conf_file)
|
||||||
.unwrap_or_else(|e| panic!("fatal: could not parse config file: {e}"));
|
.unwrap_or_else(|e| panic!("fatal: could not parse config file: {e}"));
|
||||||
|
|
||||||
let mut ninjafile = String::from(
|
let mut ninjafile = String::from(&format!(
|
||||||
r#"builddir = build
|
r#"# Generated by ngen. Do not modify by hand.
|
||||||
|
|
||||||
|
builddir = build
|
||||||
|
|
||||||
rule mkdir
|
rule mkdir
|
||||||
command = mkdir -p $out
|
command = mkdir -p $out
|
||||||
|
@ -150,7 +152,7 @@ rule regen
|
||||||
build build.ninja: regen ngen.toml
|
build build.ninja: regen ngen.toml
|
||||||
pool = console
|
pool = console
|
||||||
"#,
|
"#,
|
||||||
);
|
));
|
||||||
|
|
||||||
for k in conf.keys() {
|
for k in conf.keys() {
|
||||||
match conf.get(k) {
|
match conf.get(k) {
|
||||||
|
|
Loading…
Reference in a new issue