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)
.unwrap_or_else(|e| panic!("fatal: could not parse config file: {e}"));
let mut ninjafile = String::from(
r#"builddir = build
let mut ninjafile = String::from(&format!(
r#"# Generated by ngen. Do not modify by hand.
builddir = build
rule mkdir
command = mkdir -p $out
@ -150,7 +152,7 @@ rule regen
build build.ninja: regen ngen.toml
pool = console
"#,
);
));
for k in conf.keys() {
match conf.get(k) {