$NetBSD: patch-bin_musixtex,v 1.5 2016/06/16 04:06:13 markd Exp $

Fix paths to commands.

--- bin/musixtex.orig	2016-04-07 17:14:54.000000000 +0000
+++ bin/musixtex
@@ -176,10 +176,10 @@ local dvips = "dvips -e0"
 function defaults()
   prepmx = "prepmx"
   pmx = "pmxab"
-  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 
@@ -333,9 +333,9 @@ function find_file(this_arg)
     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
@@ -402,7 +402,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
