2022-03-04 15:00:11 +01:00
|
|
|
@echo off
|
2023-05-04 19:23:33 +02:00
|
|
|
echo -------------------------------------------------------------------
|
2024-05-20 19:22:08 +02:00
|
|
|
echo Building nushell (nu.exe) and all the plugins
|
2023-05-04 19:23:33 +02:00
|
|
|
echo -------------------------------------------------------------------
|
|
|
|
echo.
|
2022-03-04 15:00:11 +01:00
|
|
|
|
|
|
|
echo Building nushell.exe
|
2024-05-20 19:22:08 +02:00
|
|
|
cargo build --locked
|
2023-05-04 19:23:33 +02:00
|
|
|
echo.
|
2022-03-04 15:00:11 +01:00
|
|
|
|
2023-05-04 19:23:33 +02:00
|
|
|
call :build crates\nu_plugin_example nu_plugin_example.exe
|
|
|
|
call :build ..\..\crates\nu_plugin_gstat nu_plugin_gstat.exe
|
|
|
|
call :build ..\..\crates\nu_plugin_inc nu_plugin_inc.exe
|
|
|
|
call :build ..\..\crates\nu_plugin_query nu_plugin_query.exe
|
|
|
|
call :build ..\..\crates\nu_plugin_custom_values nu_plugin_custom_values.exe
|
2022-03-04 15:00:11 +01:00
|
|
|
|
2023-05-04 19:23:33 +02:00
|
|
|
cd ..\..
|
|
|
|
exit /b 0
|
2022-03-04 15:00:11 +01:00
|
|
|
|
2023-05-04 19:23:33 +02:00
|
|
|
:build
|
|
|
|
setlocal
|
|
|
|
set "location=%~1"
|
|
|
|
set "target=%~2"
|
2022-03-04 15:00:11 +01:00
|
|
|
|
2023-05-04 19:23:33 +02:00
|
|
|
cd "%location%"
|
|
|
|
echo Building %target%
|
|
|
|
cargo build
|
|
|
|
echo.
|
|
|
|
endlocal
|
|
|
|
exit /b 0
|