update scripts and environment to export module by ID

This commit is contained in:
pierpaolo.mammi committed 2026-11-20 13:26:48 +01:00
1 parent ccae96db8f
commit d300f8110a
5 files changed
+117 -26

No files matched your search

+9 -8
View File
@@ -4,21 +4,22 @@ echo %cmdcmdline% | findstr /i /c:"%~nx0" >NUL && set iscommandline=1
echo %PSModulePath% | findstr /i /c:"%USERPROFILE%" >NUL && set ispowershell=1
cd /D "%~dp0"
SET UserModuleTag=
SET UserModuleId=
SET ModuleTag=
IF "%~1"=="" (
echo Module tag not specified.
set /p UserModuleTag=Insert module tag:
IF "!UserModuleTag!"=="" (
echo Module tag is required to extract internals!
echo Module ID not specified.
set /p UserModuleId=Insert module ID:
IF "!UserModuleId!"=="" (
echo Module ID is required to extract internals!
exit /b 1
) ELSE (
set ModuleTag=!UserModuleTag!
set ModuleId=!UserModuleId!
)
) ELSE (
set ModuleTag=%~1
set ModuleId=%~1
)
call export-elx.bat "!ModuleTag!" && call extract-elx-internals.bat "!ModuleTag!"
call export-elx.bat "!ModuleId!" && call extract-elx-internals-last-updated.bat
IF DEFINED iscommandline IF NOT DEFINED ispowershell pause
ENDLOCAL