OLD | NEW |
1 cd ..\..\.. | 1 cd ..\..\.. |
2 @echo off | 2 @echo off |
3 reg query HKCR\Python.File\shell\open\command >nul: 2>&1 | 3 for /f "usebackq tokens=1*" %%f in (`reg query HKCR\Python.File\shell\open\comma
nd`) do (set _my_=%%f %%g) |
4 goto answer%errorlevel% | 4 goto next%errorlevel% |
5 :answer0 | 5 |
6 echo ... building with Python ... | 6 :next1 |
7 @echo on | 7 echo Building without Python ... |
8 modules\arch\x86\gen_x86_insn.py | 8 goto therest |
9 @echo off | 9 |
10 goto end | 10 :next0 |
11 :answer1 | 11 echo Building with Python ... |
12 echo ... building without Python ... | 12 set _res_=%_my_:*REG_SZ=% |
13 goto end | 13 set _end_=%_res_:*exe"=% |
14 :end | 14 call set _python_=%%_res_:%_end_%=%% |
| 15 call %_python_% modules\arch\x86\gen_x86_insn.py |
| 16 |
| 17 :therest |
15 @echo on | 18 @echo on |
16 %1 x86insn_nasm.gperf x86insn_nasm.c | 19 %1 x86insn_nasm.gperf x86insn_nasm.c |
17 %1 x86insn_gas.gperf x86insn_gas.c | 20 %1 x86insn_gas.gperf x86insn_gas.c |
18 %1 modules\arch\x86\x86cpu.gperf x86cpu.c | 21 %1 modules\arch\x86\x86cpu.gperf x86cpu.c |
19 %1 modules\arch\x86\x86regtmod.gperf x86regtmod.c | 22 %1 modules\arch\x86\x86regtmod.gperf x86regtmod.c |
OLD | NEW |