Live data from Hacker News

Maintaining Files on Plan 9 with Mk

9p.io

1–10 of 17 posts

Re: Maintaining Files on Plan 9 with Mk

#3
I use mk for all my personal projects. It is such a useful place to store maintenance operations on files exactly where they are needed. Not just build-type operations, but also syncing with remote stuff and other maintenance things.

My webside is managed by a big mkfile which builds html from markdown using pandoc and deploys over ssh. There is even a target in there for checking for dead links using curl.

I just counted: 778 mkfiles in my personal files.

Re: Maintaining Files on Plan 9 with Mk

#4

I use mk for all my personal projects. It is such a useful place to store maintenance operations on files exactly where they are needed. Not just build-type operations, but also syncing with remote stuff and other maintenance things. My webside is managed by a big mkfile which builds html from markdown using pandoc and deploys over ssh. There is even a target in there for checking for dead links using curl. I just co…

That sounds really interesting, any chance you could post the mkfile you use for that?

Re: Maintaining Files on Plan 9 with Mk

#8

I use mk for all my personal projects. It is such a useful place to store maintenance operations on files exactly where they are needed. Not just build-type operations, but also syncing with remote stuff and other maintenance things. My webside is managed by a big mkfile which builds html from markdown using pandoc and deploys over ssh. There is even a target in there for checking for dead links using curl. I just co…

Any reason you chose to use mk over (GNU) Make?

Re: Maintaining Files on Plan 9 with Mk

#9
post #4

I use mk for all my personal projects. It is such a useful place to store maintenance operations on files exactly where they are needed. Not just build-type operations, but also syncing with remote stuff and other maintenance things. My webside is managed by a big mkfile which builds html from markdown using pandoc and deploys over ssh. There is even a target in there for checking for dead links using curl. I just co…

That sounds really interesting, any chance you could post the mkfile you use for that?

Sure, I will post it once I get home. There is no hocus pocus in it, but I has been working for me without issue for close to a decade already.

Re: Maintaining Files on Plan 9 with Mk

#10
post #8

I use mk for all my personal projects. It is such a useful place to store maintenance operations on files exactly where they are needed. Not just build-type operations, but also syncing with remote stuff and other maintenance things. My webside is managed by a big mkfile which builds html from markdown using pandoc and deploys over ssh. There is even a target in there for checking for dead links using curl. I just co…

Any reason you chose to use mk over (GNU) Make?

Mostly just the simpler syntax. I always found makefiles a bit off-putting. On the other hand, the syntax for mkfiles, especially with rc as the mk shell, feels slick and homely.
Post reply on HN