From f52beba3d8ed816ee53f55a21d74a1b0aaafb503 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 18 Aug 2024 03:25:48 -0400 Subject: [PATCH] Regular expression fixes. --- .scripts/FreeDoom.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.scripts/FreeDoom.sh b/.scripts/FreeDoom.sh index d6b75ca..426bf2c 100755 --- a/.scripts/FreeDoom.sh +++ b/.scripts/FreeDoom.sh @@ -48,6 +48,8 @@ doomGames=( export antiGrepStrings=( '-E' '-v' + '-e' '^(Decal|Fluidsynth|Load|Parse)[^ ]+' + '-e' '^OS: .*Linux, Linux .*' '-e' '^Resolution:' '-e' '^\[Toby Accessibility Mod\] (INTRO|READMe)([0-9]+).*' ) @@ -55,7 +57,7 @@ export antiGrepStrings=( export grepStrings=( '-E' '-e' '^\[Toby Accessibility Mod\]' - '-e' '^[A-Z][0-9a-z]+: .+' + '-e' '^[A-Z][0-9A-Za-z]+: .+' '-e' 'is now known as' '-e' '.+ punched .+ to death\.' '-e' 'stood where' @@ -64,7 +66,6 @@ export grepStrings=( '-e' 'chewed on' '-e' 'The maximum' '-e' 'swapped two barrels' - '-e' 'MAP[0-9]+' '-e' 'swallowed too much of' '-e' 'exited the level' '-e' 'joined the game' @@ -77,17 +78,17 @@ export grepStrings=( '-e' '^You have no keys in your pocket!$' ) -export sedStrings=( +export sedStrings=('-E' '-e' 's/^\[Toby Accessibility Mod\] M_/[Toby Accessibility Mod] /' '-e' 's/^\[Toby Accessibility Mod\] //' '-e' 's/^MessageBoxMenu$/Press Y for yes or N for no/' - '-e' 's/"^Mainmenu$/Main menu/' - '-e' 's/"^Skillmenu$/Difficulty menu/' - '-e' 's/"^NGAME$/New game/' - '-e' 's/"^(LOAD|SAVE|QUIT)G$/& game/' + '-e' 's/^Mainmenu$/Main menu/' + '-e' 's/^Skillmenu$/Difficulty menu/' + '-e' 's/^NGAME$/New game/' + '-e' 's/^(LOAD|SAVE|QUIT)G$/\1 game/' '-e' 's/"cl_run" = "true"/run/' '-e' 's/"cl_run" = "false"/walk/' - '-e' 's:.*/:Game saved. \(:' + #'-e' 's:.*/:Game saved. \(:' ) custom_game() {