Fix `gn clean`.

The way `gn clean` preserves enough of the toplevel build.ninja
file in order to be able to recreate itself is kind of hacky; it
looks for a certain number of blank lines and then discards the
rest. When we added the `ninja_required_version` field to the
file, that added a blank line, but we didn't bump the number of
blank lines to look for by one. This meant that we discarded
the rule that would actually regenerate ninja.

As a result, `gn clean` would break ninja's ability to regenerate
the file. This CL fixes that.

R: brettw@chromium.org
Bug: 757035
Change-Id: Ie200c5705d93a9327741f52b194a35c31b66ecce
Reviewed-on: https://chromium-review.googlesource.com/621589
Reviewed-by: Brett Wilson <brettw@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#495682}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7a152fc8b6727dfbf1616043f314d99079605e45
1 file changed
tree: dc4fa79d4dc1a85a3e864844fcee69117ded2c06
  1. tools/