mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Known bug : .lauch file Generate doc doesn't work, it needs an update to luadocumentor.bat
23 lines
610 B
Batchfile
23 lines
610 B
Batchfile
echo off
|
|
|
|
rem Update Missions with a new version of Moose.lua
|
|
rem Provide as the only parameter the path to the .miz files, which can be embedded in directories.
|
|
|
|
echo Path to Mission Files: %1
|
|
|
|
rem For /R %1 %%G IN (*.miz) do 7z u "%%G" "l10n\DEFAULT\Moose.lua"
|
|
For /R %1 %%M IN (*.miz) do (
|
|
echo off
|
|
cd > NUL:
|
|
echo "Mission: %%M"
|
|
mkdir Temp
|
|
cd Temp
|
|
mkdir l10n
|
|
mkdir l10n\DEFAULT
|
|
copy ..\..\Moose.lua l10n\DEFAULT > NUL:
|
|
copy "%%~pM%%~nM.lua" l10n\DEFAULT\*.* > NUL:
|
|
rem dir l10n\DEFAULT
|
|
"%~dp0..\..\Utils\7-Zip\7z" -bb0 u "%%M" "l10n\DEFAULT\*.lua" > NUL:
|
|
cd ..
|
|
rmdir /S /Q Temp
|
|
) |