mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
improve handling of Python batch file for genperf
svn path=/trunk/yasm/; revision=2230
This commit is contained in:
parent
7a0082c94d
commit
de776f46ea
1 changed files with 3 additions and 2 deletions
|
|
@ -1,11 +1,12 @@
|
|||
cd ..\..\..
|
||||
@echo off
|
||||
reg query HKCR\Python.File\shell\open\command >nul: 2>&1
|
||||
for /f "usebackq tokens=2,3,4" %%f in (`reg query HKCR\Python.File\shell\open\command`) do (if %%f==REG_SZ echo %%g %%h >run_py.bat)
|
||||
goto answer%errorlevel%
|
||||
:answer0
|
||||
echo ... building with Python ...
|
||||
@echo on
|
||||
modules\arch\x86\gen_x86_insn.py
|
||||
call run_py.bat modules\arch\x86\gen_x86_insn.py
|
||||
del run_py.bat
|
||||
@echo off
|
||||
goto end
|
||||
:answer1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue