揮発性のメモ2

http://d.hatena.ne.jp/iww/

秀丸でmakeを実行する

秀丸でmakeボタンを押したら、make.bat を実行し、結果をアウトプット枠に表示する。
make.batの中で、適当にssh経由でmakeとかを実行すればよい。

make実行.mac

setcompatiblemode 0x0F;
#OUT = loaddll("HmOutputPane.dll");


call Output "\r\n------------------------------";

$$batfile = directory + "\\make.bat";
if( ! existfile($$batfile) ){
    call Output $$batfile+"がありません";

}else{
    call Output $$batfile+"を実行します";
    
    runex $$batfile
        , 0        //sync    0:async 1:sync
        , 0, ""    //stdin   0:none 1:auto 2:file 3:(reserve) 4:all 5:select
        , 8, ""    //stdout  0:none 1:auto 2:file 3:add file  4:new 5:insert 6:replace
        , 8, ""    //stderr  0:none 1:=out/auto 2:file 3:add file  4:new 5:insert 6:replace
        , 0, ""    //folder  0:none 1:current 2:specify 3:(reserve) 4:exe's folder
        , 0        //show    0:auto 1:show 2:hide
        , 0        //nodraw  0:draw 1:no draw
        , 6        //unicode 0:ansi 2:utf-16 6:utf-8
        ;
}


freedll(#OUT);
endmacro;


// アウトプット枠出力関数
Output:
    ##ret = dllfunc(#OUT, "Output",hidemaruhandle(0), $$1+"\r\n");
    return;

秀丸 V8.30以降でないと アウトプット枠に追加出力できないので注意する