mirror of
https://github.com/arkenfox/user.js.git
synced 2025-05-07 17:33:45 +02:00
Update updater.bat
This commit is contained in:
parent
14a7d07ddb
commit
44bd0710f7
1 changed files with 10 additions and 12 deletions
22
updater.bat
22
updater.bat
|
@ -192,7 +192,7 @@ REM ############ Merge function ############
|
||||||
:merge
|
:merge
|
||||||
SETLOCAL DisableDelayedExpansion
|
SETLOCAL DisableDelayedExpansion
|
||||||
FOR /F tokens^=2^,^*^ delims^=^'^" %%G IN ('FINDSTR /R /C:"^user_pref[ ]*\([ ]*[\"'][a-z].*[\"'][ ]*,.*\)[ ]*;" "%~1"') DO (SET "[%%G]=%%H")
|
FOR /F tokens^=2^,^*^ delims^=^'^" %%G IN ('FINDSTR /R /C:"^user_pref[ ]*\([ ]*[\"'][a-z].*[\"'][ ]*,.*\)[ ]*;" "%~1"') DO (SET "[%%G]=%%H")
|
||||||
FOR /F tokens^=2^,^*^ delims^=^" %%G IN ('FINDSTR /R /C:"^//// --- comment-out --- \"[a-z].*\".*" "%~1"') DO (SET "__unset__%%G=1")
|
FOR /F tokens^=2^,^*^ delims^=^' %%G IN ('FINDSTR /R /C:"^//// --- comment-out --- '[a-z][^']*'.*" "%~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"
|
||||||
|
@ -205,19 +205,17 @@ FOR /F tokens^=2^,^*^ delims^=^" %%G IN ('FINDSTR /R /C:"^//// --- comment-out -
|
||||||
) ELSE (
|
) ELSE (
|
||||||
ENDLOCAL
|
ENDLOCAL
|
||||||
FOR /F tokens^=2^ delims^=^'^" %%K IN ("%%J") DO (
|
FOR /F tokens^=2^ delims^=^'^" %%K IN ("%%J") DO (
|
||||||
IF NOT "_user.js.parrot"=="%%K" (
|
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]="
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
) ELSE (ECHO:%%J)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue