mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-20 17:07:54 +00:00
581414b259
-- Updated .launch files to work from workspace. So everybody can use them from LDT. -- Deleted obscolete .launch files. -- Created new Moose_Create.lua script. Now lua makes the Dynamic and Static Moose.lua stub. -- One single file is the reference for the Moose sources: Moose.files located in Moose Setup -- Removed the l10n directory from Moose Setup\Moose Mission Update. -- Removed the 7z and other outputs to update missions.
23 lines
585 B
Batchfile
23 lines
585 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
|
|
7z -bb0 u "%%M" "l10n\DEFAULT\*.lua" > NUL:
|
|
cd ..
|
|
rmdir /S /Q Temp
|
|
) |