added file header

This commit is contained in:
Noah Swerhun 2024-03-04 11:44:50 -06:00
parent cdbb2e15a2
commit fcda2650b0

View file

@ -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) {