$NetBSD: patch-bin_musixtex,v 1.4 2015/08/02 11:49:59 markd Exp $

Fix paths to commands.

--- bin/musixtex.orig	2015-07-26 22:48:40.000000000 +0000
+++ bin/musixtex
@@ -91,11 +91,11 @@ if #arg == 0 then
 end
 
 -- defaults:
-tex = "etex"  
-musixflx = "musixflx"
-dvips = "dvips -e0 "
-dvi = dvips
-ps2pdf = "ps2pdf"
+tex = "@LOCALBASE@/bin/etex"  
+musixflx = "@LOCALBASE@/bin/musixflx"
+dvips = "@LOCALBASE@/bin/dvips -e0 "
+dvi = "@LOCALBASE@/bin/dvips"dvips
+ps2pdf = "@LOCALBASE@/bin/ps2pdf"
 intermediate = 1
 passes = 2
 index = 0
@@ -112,19 +112,19 @@ repeat
     os.exit(0)
   elseif this_arg == "-l" then
     if tex == "pdfetex" then
-      tex = "pdflatex"
+      tex = "@LOCALBASE@/bin/pdflatex"
     else
-      tex = "latex"
+      tex = "@LOCALBASE@/bin/latex"
     end
   elseif this_arg == "-p" then
     if tex == "latex" then
-      tex = "pdflatex"
+      tex = "@LOCALBASE@/bin/pdflatex"
     else
-      tex = "pdfetex"
+      tex = "@LOCALBASE@/bin/pdfetex"
     end
     dvi = ""; ps2pdf = ""
   elseif this_arg == "-d" then
-    dvi = "dvipdfm"; ps2pdf = ""
+    dvi = "@LOCALBASE@/bin/dvipdfm"; ps2pdf = ""
   elseif this_arg == "-s" then
     dvi = ""; ps2pdf = ""
   elseif this_arg == "-i" then
@@ -132,9 +132,9 @@ repeat
   elseif this_arg == "-1" then
     passes = 1
   elseif this_arg == "-f" then
-    tex = "etex"; dvi = dvips; ps2pdf = "ps2pdf"; intermediate = 1; passes = 2; index = 0; preprocess = 0
+    tex = "@LOCALBASE@/bin/etex"; dvi = "@LOCALBASE@/bin/dvips"; ps2pdf = "@LOCALBASE@/bin/ps2pdf"; intermediate = 1; passes = 2; index = 0; preprocess = 0
   elseif this_arg == "-g" then
-    dvi = dvips; ps2pdf = ""
+    dvi = "@LOCALBASE@/bin/dvips"; ps2pdf = ""
   elseif this_arg == "-x" then
     index = 1
   elseif this_arg == "-a" then
