Maintaining Files on Plan 9 with Mk(9p.io)
9p.io
Maintaining Files on Plan 9 with Mk
https://9p.io/sys/doc/mk.html
16 comments
That sounds really interesting, any chance you could post the mkfile you use for that?
Here it is: https://okturing.com/src/14174/body
Just say if something needs explaining. There are some references to other fines in there, like the deployment index (its just list of files to deploy) and the comment blob (it is just a notice that people can comment by e-mail.
Just say if something needs explaining. There are some references to other fines in there, like the deployment index (its just list of files to deploy) and the comment blob (it is just a notice that people can comment by e-mail.
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.
Did you ever get home?
I did in fact finally reach my home after long wanderings:
https://okturing.com/src/14174/body
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.
> feels slick and homely.
I presume “homely” is this context means UK “familiar and pleasant, as in a home”, and not US “not attractive or good-looking”.
I presume “homely” is this context means UK “familiar and pleasant, as in a home”, and not US “not attractive or good-looking”.
Hah, I forget the American meaning of that word. Indeed “homely” as in “the last homely house east of the sea”.
Source code for the curious: https://github.com/0intro/plan9/tree/main/sys/src/cmd/mk
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.