sinclairtarget / um

Create and maintain your own man pages so you can remember how to do stuff
MIT License
1.8k stars 42 forks source link

Make rake invocation less verbose #19

Closed He-Ro closed 6 years ago

He-Ro commented 6 years ago

Only create the output directory if needed.

This is my first time coding in Ruby, so any hint about better format/coding style would be welcome ;) In the AUR package someone suggested to remove the multiple mkdir -p doc/man1 output lines, when building the package.

So now you only see this line once and only if the directory did not exist beforehand.

sinclairtarget commented 6 years ago

See https://github.com/sinclairtarget/um/commit/9f3e21dbef19734b22fa26242b872d77be8c0005.

This is a good idea, but I'm pretty sure what you've got just executes every time the Rakefile is read. We should only create the /doc/man1 directory when we're running the rake man task.

If you really need Rake to be silent, you can pass the -s flag.