Reputation: 15113
Is it possible to read a Ninja build file from STDIN, even without a build.ninja
or other file present?
Upvotes: 2
Views: 384
Reputation: 15113
Yes, use /dev/stdin
as the filename. Note that this probably won't work on Windows.
echo "# ninja!" | ninja -f /dev/stdin
Upvotes: 2