$NetBSD: patch-bin_musixtex,v 1.7 2018/05/12 01:14:32 markd Exp $

Fix paths to commands.

--- bin/musixtex.orig	2017-12-26 22:07:24.000000000 +0000
+++ bin/musixtex
@@ -197,10 +197,10 @@ function defaults()
   prepmx = "prepmx"
   pmx = "pmxab"
   autosp = "autosp"
-  tex = "etex"
-  musixflx = "musixflx"
-  dvi = dvips
-  ps2pdf = "ps2pdf"
+  tex = "@LOCALBASE@/bin/etex"
+  musixflx = "@LOCALBASE@/bin/musixflx"
+  dvi = @LOCALBASE@/bin/dvips
+  ps2pdf = "@LOCALBASE@/bin/ps2pdf"
   cleanup = true  -- clean up intermediate and log files
   index = false
   latex = false 
@@ -423,7 +423,7 @@ function tex_process(tex,basename,extens
   local latex = latex
   if extension == "ltx" then
     if not force_engine and not latex then
-      if dvi then tex = "latex" else tex = "pdflatex" end
+      if dvi then tex = "@LOCALBASE@/bin/latex" else tex = "@LOCALBASE@/bin/pdflatex" end
     end
     latex = true
   end
@@ -567,9 +567,9 @@ repeat
       if not override:match"l" then latex = tex:match"latex" end 
       if not force_engine then -- select appropriate default engine
         if latex then 
-          if dvi==nil then tex = "pdflatex" else tex = "latex" end
+          if dvi==nil then tex = "@LOCALBASE@/bin/pdflatex" else tex = "@LOCALBASE@/bin/latex" end
         else 
-          if dvi==nil then tex = "pdfetex" else tex = "etex" end
+          if dvi==nil then tex = "@LOCALBASE@/bin/pdfetex" else tex = "@LOCALBASE@/bin/etex" end
         end  
       end
     end
