[HN Gopher] Maintaining Files on Plan 9 with Mk
       ___________________________________________________________________
        
       Maintaining Files on Plan 9 with Mk
        
       Author : jsfcoding
       Score  : 58 points
       Date   : 2022-09-06 13:17 UTC (9 hours ago)
        
 (HTM) web link (9p.io)
 (TXT) w3m dump (9p.io)
        
       | bkq wrote:
       | Archive link as I'm having issues accessing the page:
       | https://archive.ph/7GWAI
        
         | nortonham wrote:
         | thanks
        
       | jonpalmisc wrote:
       | Source code for the curious:
       | https://github.com/0intro/plan9/tree/main/sys/src/cmd/mk
        
       | Crontab wrote:
       | Is the make from Go based on the Plan 9 Mk? Or is it something
       | else entirely?
        
         | ainar-g wrote:
         | What do you mean by "make from Go"?
        
           | Crontab wrote:
           | Nevermind, I see that Go has a build subcommand.
        
       | black_knight wrote:
       | 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.
        
         | bkq wrote:
         | That sounds really interesting, any chance you could post the
         | mkfile you use for that?
        
           | black_knight wrote:
           | 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.
        
         | daptaq wrote:
         | Any reason you chose to use mk over (GNU) Make?
        
           | black_knight wrote:
           | 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.
        
             | bch wrote:
             | > 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".
        
               | black_knight wrote:
               | Hah, I forget the American meaning of that word. Indeed
               | "homely" as in "the last homely house east of the sea".
        
       ___________________________________________________________________
       (page generated 2022-09-06 23:02 UTC)