Pack / Pack2
Procedure Sample
OK, so for anyone out there who may need this, or a possible future self of mine in a couple of years' time:
1. Unpack your archive file with the commands:
"Unpack oldapp.@ /SHOW > oldapp.txt" -- this will let you know the target paths for uncompressed files "Unpack oldapp.@ ." will expand all files in the current dir (".")
2. Edit oldapp.txt. This might look like this
----8<--------8<--------8<--------8<--------8<--------8<--------8<---- oldapp.@ [...] ->\os2\dll\OldApp.dll ->\os2\help\OldApp.hlp [...] ----8<--------8<--------8<--------8<--------8<--------8<--------8<----
and we need to transform that into something like this
----8<--------8<--------8<--------8<--------8<--------8<--------8<---- [...] FixedApp.dll /H:\os2\dll\OldApp.dll FixedApp.hlp /H:\os2\help\OldApp.hlp [...] ----8<--------8<--------8<--------8<--------8<--------8<--------8<----
to rebuild the archive using the new files instead of the old ones, while keeping their target paths. Save the list as FixedApp.lst, and type:
"Pack FixedApp.lst OldApp.@ /L"
to pack everything back. You should be good to go. Pack2 shares the same syntax, apparently.