mirror of
https://github.com/arkenfox/user.js.git
synced 2025-05-07 01:13:43 +02:00
Update updater.bat
This commit is contained in:
parent
ce8ec39ecf
commit
e86d19a9f7
1 changed files with 5 additions and 5 deletions
10
updater.bat
10
updater.bat
|
@ -191,8 +191,8 @@ GOTO :EOF
|
||||||
REM ############ Merge function ############
|
REM ############ Merge function ############
|
||||||
:merge
|
:merge
|
||||||
SETLOCAL DisableDelayedExpansion
|
SETLOCAL DisableDelayedExpansion
|
||||||
FOR /F tokens^=2^,^*^ delims^=^'^" %%G IN ('FINDSTR /B /R /C:"user_pref.*\)[ ]*;" "%~1"') DO (IF NOT "%%H"=="" (SET "%%G=%%H"))
|
FOR /F tokens^=2^,^*^ delims^=^'^" %%G IN ('FINDSTR /B /R /C:"user_pref[ ]*\([ ]*[\"'][^\"'][^\"']*[\"'][ ]*,.*\)[ ]*;" "%~1"') DO (SET "[%%G]=%%H")
|
||||||
FOR /F tokens^=2^,^*^ delims^=^" %%G IN ('FINDSTR /B /R /C:"\/\/ comment-out .*" "%~1"') DO (SET "__unset__%%G=1")
|
FOR /F tokens^=2^,^*^ delims^=^" %%G IN ('FINDSTR /B /R /C:"\/\/\/\/ --- comment-out --- \"[^\"][^\"]*\".*" "%~1"') DO (SET "__unset__%%G=1")
|
||||||
(
|
(
|
||||||
FOR /F "tokens=1,* delims=:" %%I IN ('FINDSTR /N "^" "%~1"') DO (
|
FOR /F "tokens=1,* delims=:" %%I IN ('FINDSTR /N "^" "%~1"') DO (
|
||||||
SET "_temp=%%J"
|
SET "_temp=%%J"
|
||||||
|
@ -209,11 +209,11 @@ FOR /F tokens^=2^,^*^ delims^=^" %%G IN ('FINDSTR /B /R /C:"\/\/ comment-out .*"
|
||||||
IF DEFINED __unset__%%K (
|
IF DEFINED __unset__%%K (
|
||||||
ECHO://%%J
|
ECHO://%%J
|
||||||
) ELSE (
|
) ELSE (
|
||||||
IF DEFINED %%K (
|
IF DEFINED [%%K] (
|
||||||
SETLOCAL EnableDelayedExpansion
|
SETLOCAL EnableDelayedExpansion
|
||||||
FOR /F "delims=" %%L IN ("!%%K!") DO (
|
FOR /F "delims=" %%L IN ("![%%K]!") DO (
|
||||||
ENDLOCAL & ECHO:user_pref("%%K"%%L
|
ENDLOCAL & ECHO:user_pref("%%K"%%L
|
||||||
SET "%%K="
|
SET "[%%K]="
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue