scripts: new script to export and extract a single module

This commit is contained in:
2026-06-24 12:12:52 +02:00
parent 7c0a43a5b4
commit 52bd25cce5
+24
View File
@@ -0,0 +1,24 @@
@echo off
SETLOCAL EnableDelayedExpansion
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=
IF "%~1"=="" (
echo Module tag not specified.
set /p UserModuleTag=Insert module tag:
IF "!UserModuleTag!"=="" (
echo Module tag is required to extract internals!
exit /b 1
) ELSE (
set ModuleTag=!UserModuleTag!
)
) ELSE (
set ModuleTag=%~1
)
call export-elx.bat "!ModuleTag!" && call extract-elx-internals.bat "!ModuleTag!"
IF DEFINED iscommandline IF NOT DEFINED ispowershell pause
ENDLOCAL