Many changes - not yet "controlled" updates.
This commit is contained in:
55
Tools/MakeResourceFiles.cmd
Normal file
55
Tools/MakeResourceFiles.cmd
Normal file
@@ -0,0 +1,55 @@
|
||||
@echo off
|
||||
REM
|
||||
REM "Compile" the web resources folder into code modules.
|
||||
REM
|
||||
REM Command : MakeByteArray -ESP *.* -o=..\Web_Resources.h
|
||||
REM From cwd : C:/Projects/SmartSwitch/Firmware/Resources
|
||||
REM Run script in command shell, not PowerShell
|
||||
REM
|
||||
REM External Dependency:
|
||||
REM MakeByteArray - Converts 1 or more files into a .h file byte array.
|
||||
REM
|
||||
REM +------------------------------------------------+
|
||||
REM | MakeResourceFiles.cmd |
|
||||
REM +------------------------------------------------+
|
||||
REM ||
|
||||
REM +----------+ +-----------+ +-----------+
|
||||
REM +----------+ | |Make | | |
|
||||
REM |source | | |Byte | |Resources.h|
|
||||
REM |.htm | | ==> |Array.pl | ==> | |
|
||||
REM |.js | | | | | |
|
||||
REM |.jpg | | | | | |
|
||||
REM |etc... |-+ | | | |
|
||||
REM +----------+ +-----------+ +-----------+
|
||||
setlocal
|
||||
|
||||
REM ######################################################################
|
||||
REM
|
||||
REM Configuration Options
|
||||
REM
|
||||
|
||||
set SRC=..\Firmware\Resources
|
||||
set TARG=..\Web_Resources.h
|
||||
|
||||
REM
|
||||
REM End of Configuration
|
||||
REM
|
||||
REM ######################################################################
|
||||
|
||||
echo.
|
||||
echo.Make Resource Files
|
||||
echo.Change to %SRC% ...
|
||||
pushd %SRC%
|
||||
|
||||
echo.Show web resources
|
||||
dir /b
|
||||
|
||||
echo.
|
||||
echo.Compiling the web resources into code modules...
|
||||
MakeByteArray -ESP -DIR *.* -o=%TARG%
|
||||
|
||||
echo.
|
||||
echo.Done. %TARG% has been updated and returning to prior folder.
|
||||
dir %TARG%
|
||||
popd
|
||||
endlocal
|
||||
Reference in New Issue
Block a user