Autogen.bat for windows to download models

This commit is contained in:
Marcus Asteborg 2023-05-24 21:29:25 -07:00 committed by Jean-Marc Valin
parent 84484a6790
commit d819cde563
No known key found for this signature in database
GPG key ID: 531A52533318F00A

17
autogen.bat Normal file
View file

@ -0,0 +1,17 @@
@echo off
REM Run this to set up the build system: configure, makefiles, etc.
setlocal enabledelayedexpansion
REM Parse the real autogen.sh script for version
for /F "tokens=4 delims= " %%A in ('findstr "download_model.sh" autogen.sh') do (
set "model=%%A"
)
REM Remove trailing ")" character from the model variable
set "model=%model:~0,-1%"
cd lpcnet
call download_model.bat %model%
cd ..
echo Updating build configuration files, please wait....