It Installs! It Works! It Uninstalls!
\me does the happy dance
[codebox]ACTION_IF ~%WEIDU_OS%~ STRING_COMPARE_CASE ~WIN32~ THEN BEGIN
AT_UNINSTALL ~for a in generalized_biffing/prod/biffs/*; do mv $a/* override; done~
END ELSE BEGIN
AT_UNINSTALL ~for /d %a in (generalized_biffing\prod\biffs\*) do move %a\* override > nul~ EXACT
END
<<<<<<<< .../list-of-files
>>>>>>>>
PRINT ~Would you like to biff only wav&tis files, or all files found?
0] only wav&tis (recommended by The Bigg and other Small World Dudes)
1] all files (recommended by the Big World Dudes)~
ACTION_READLN selection
OUTER_WHILE (~%selection%~ STRING_COMPARE 1) && (~%selection%~ STRING_COMPARE 0) BEGIN
PRINT ~You must be bone-headed. Please insert either 0 or 1.
Would you like to biff only wav&tis files, or all files found?
0] only wav&tis (recommended by The Bigg and other Small World Dudes)
1] all files (recommended by the Big World Dudes)~
ACTION_READLN selection
END
OUTER_TEXT_SPRINT myRegExp ~^[^ ]*\.\(wav\|tis\)$~
ACTION_IF selection THEN BEGIN
OUTER_TEXT_SPRINT myRegExp ~^[^ ]*$~
END
MKDIR ~generalized_biffing/prod~
COPY ~.../list-of-files~ ~generalized_biffing/prod/list-of-files~
SILENT
ACTION_BASH_FOR ~override~ ~%myRegExp%~ BEGIN
APPEND_OUTER ~generalized_biffing/prod/list-of-files~ ~%BASH_FOR_FILE% %BASH_FOR_SIZE%~
END
MKDIR ~generalized_biffing/prod/biffs/0~
COPY_EXISTING ~generalized_biffing/prod/list-of-files~ ~generalized_biffing/prod/list-of-files~
READ_2DA_ENTRIES_NOW ~list-of-files~ 2
currentTotal = 0
currentFile = 0
FOR (i = 0; i < ~list-of-files~; i+=1) BEGIN
READ_2DA_ENTRY_FORMER ~list-of-files~ i 0 file
READ_2DA_ENTRY_FORMER ~list-of-files~ i 1 size
INNER_ACTION BEGIN
ACTION_IF size + currentTotal > 30000000 && currentTotal > 0 BEGIN
MAKE_BIFF ~tb#gen%currentFile%~ BEGIN ~generalized_biffing/prod/biffs/%currentFile%~ ~^.*$~ END
OUTER_SET currentFile = currentFile + 1
OUTER_SET currentTotal = 0
MKDIR ~generalized_biffing/prod/biffs/%currentFile%~
END
ACTION_IF ~%WEIDU_OS%~ STRING_COMPARE_CASE ~WIN32~ THEN BEGIN
AT_NOW ~mv override/%file% generalized_biffing/prod/biffs/%currentFile%~
END ELSE BEGIN
AT_NOW ~move override/%file% generalized_biffing/prod/biffs/%currentFile%~
END
END
currentTotal += size
END
BUT_ONLY
VERBOSE
[/codebox]
Obviously, this requires W208 more than <comparison>. You should encourage me to spend time writing exceptionally complicated tp2s just to notice that missing Var.get_string or that killer typo