[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Lilypond-book with Cygwin & Jedit - update
From: |
Bertalan Fodor |
Subject: |
RE: Lilypond-book with Cygwin & Jedit - update |
Date: |
Sat, 20 Mar 2004 00:51:41 +0100 |
I modified it a bit (to not assume anything about extension).
And it seems that if you click on View PS, you can view the book as well :-)
So long time was I waiting for this commando file :-) Thank you for your
suggestion!
<?xml version="1.0"?>
<!DOCTYPE COMMANDO SYSTEM "commando.dtd">
<COMMANDO>
<UI>
<ENTRY LABEL="File name" VARNAME="filePath"
EVAL="buffer.getPath()" />
</UI>
<COMMANDS>
<COMMAND CONFIRM="FALSE" SHELL="System">
buf = new StringBuffer("C:\\cygwin\\bin\\bash.exe --login -c \"cd
`cygpath -au ");
String fileNoExt=MiscUtilities.getFileNameNoExtension(filePath);
fileNoExt=fileNoExt.replaceAll("\\\\","/");
buf.append(buffer.getDirectory().replaceAll("\\\\","/"));
buf.append(" ` ; lilypond-book ` cygpath -au ");
buf.append(filePath.replaceAll("\\\\","/"));
buf.append(" ` ; latex `cygpath -au ");
buf.append(fileNoExt+".tex");
buf.append(" ` ; dvips -ta4 -Ppdf -u +lilypond.map `cygpath -au ");
buf.append(fileNoExt+".dvi");
buf.append(" `\"");
buf;
</COMMAND>
</COMMANDS>
</COMMANDO>