mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
23 lines
552 B
Batchfile
23 lines
552 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
|
|
echo "Mission: %%M"
|
|
mkdir Temp
|
|
cd Temp
|
|
mkdir l10n
|
|
mkdir l10n\DEFAULT
|
|
copy ..\..\Moose.lua l10n\DEFAULT
|
|
copy "%%~pM%%~nM.lua" l10n\DEFAULT\*.*
|
|
dir l10n\DEFAULT
|
|
7z -bb0 u "%%M" "l10n\DEFAULT\*.lua"
|
|
cd ..
|
|
rmdir /S /Q Temp
|
|
) |