VOGONS


Automated PATCH tool

Topic actions

First post, by DaveDDS

User metadata
Rank Oldbie
Rank
Oldbie

Just in case anyone's interested - I put together a fairly nice (IMHO)
automatic "patch package" tool... This lets you make a lot of string/text
patches to a full package which may containing binary and text format files!

In last couple days I updated a program that I use from time to time, and I had
spent DAYS patching the original set of about 50 files to change various files,
names and strings contained within it and it's supporting files!

Not wanting to do that again, I decided to write PATPKG (PATch PacKaGe) which
uses a small file of information about what I want to change to completely
automate the process - I'm quite happy with the result!

I'll be posting it soon, but here's an example of what you can do with it.
(It's easy to make the .PAT file: DIR /S /B >X.PAT, then edit out any files you
don't want to change, add renames, and additional patch strings as you wish)

It happens to be for a "TRS-80 Model100" emulator, I had changed the name, and
eliminated "long file names" as they sometime get trashed by various DOS tools
I might use beside this package.

The below won't "look right" due to web reformatting, you can see the original:
MySite->Downloads->T80M100

; This is .PAT file for my PATPKG tool that I use to patch VIRTUAL_T
;
;t oldfile [newname] <- patch Text [&rename] \
;b "" "" <- patch Binary "" > also gives patch strings
;= "" "" <- rename only /
; uppercase 'T' or 'B' patches even when !-Go output: R:\$TMP$ (testing)
;- oldstr newstr <- patch string only
;> command <- perform command at end
;
t R:\VIRT\release.txt
b R:\VIRT\VirtualT.exe T80M100.EXE
b R:\VIRT\vt_client.exe CLIEM100.EXE
= R:\VIRT\ROMs\fx80.fcr
= R:\VIRT\ROMs\KC85rom.bin KC85.ROM
= R:\VIRT\ROMs\m100-9.fcr
= R:\VIRT\ROMs\M100rom.bin M100.ROM
= R:\VIRT\ROMs\m100t.fcr
= R:\VIRT\ROMs\M102rom.bin M102.ROM
= R:\VIRT\ROMs\M10rom.bin M10.ROM
= R:\VIRT\ROMs\m200-9.fcr
= R:\VIRT\ROMs\m200t.fcr
= R:\VIRT\ROMs\PC8201rom.bin PC8201.ROM
= R:\VIRT\ROMs\PC8300rom.bin PC8300.ROM
= R:\VIRT\ROMs\T200rom.bin T200.ROM
t R:\VIRT\doc\about_hw.html about_hw.htm
t R:\VIRT\doc\asm_ref.html asm_ref.htm
t R:\VIRT\doc\basics.html basics.htm
t R:\VIRT\doc\build.html build.htm
= R:\VIRT\doc\char_gen.jpg
= R:\VIRT\doc\check.gif
= R:\VIRT\doc\clock_tab.jpg clk_tab.jpg
= R:\VIRT\doc\cpu_regs.jpg
t R:\VIRT\doc\emulation.html emulate.htm
= R:\VIRT\doc\file_print_mon.jpg filepm.jpg
= R:\VIRT\doc\file_print_prop.jpg filepp.jpg
= R:\VIRT\doc\filesys.html filesys.htm
= R:\VIRT\doc\fx80_print_mon.jpg fx80pm.jpg
= R:\VIRT\doc\fx80_print_prop.jpg fx80pp.jpg
t R:\VIRT\doc\help.html help.htm
t R:\VIRT\doc\host.html host.htm
= R:\VIRT\doc\host_print_prop.jpg hostpp.jpg
= R:\VIRT\doc\hw_block_diag.jpg hwblkdia.jpg
t R:\VIRT\doc\ide.html ide.htm
t R:\VIRT\doc\license.html licsnse.htm
t R:\VIRT\doc\linker_ref.html link_ref.htm
= R:\VIRT\doc\lpt_mon.jpg
= R:\VIRT\doc\lpt_tab.jpg
t R:\VIRT\doc\mail_list.html maillist.htm
= R:\VIRT\doc\mem_edit.jpg
= R:\VIRT\doc\memory_setup.jpg memsetup.jpg
= R:\VIRT\doc\menu.jpg
= R:\VIRT\doc\model_100.jpg model100.jpg
t R:\VIRT\doc\models.html models.htm
= R:\VIRT\doc\periph.jpg
= R:\VIRT\doc\periph_setup.jpg per_set.jpg
t R:\VIRT\doc\preface.html preface.htm
= R:\VIRT\doc\print_menu.jpg prt_menu.jpg
t R:\VIRT\doc\printers.html printers.htm
= R:\VIRT\doc\remem_cfg.jpg reme_cfg.jpg
t R:\VIRT\doc\sockets.html sockets.htm
t R:\VIRT\doc\tools.html tools.htm
t R:\VIRT\Projects\readme.txt
- VirtualT T80-M100
- virtualt T80-M100
- "Virtual T" "T80-M100 "
> md R:\VIRT\M100
> md R:\VIRT\M102
> md R:\VIRT\T200
> md R:\VIRT\M10
> md R:\VIRT\PC8201
> md R:\VIRT\PC8300
> md R:\VIRT\KC85
> copy R:\VIRT\ROMs\M100.ROM R:\VIRT\M100
> copy R:\VIRT\ROMs\M102.ROM R:\VIRT\M102
> copy R:\VIRT\ROMs\T200.ROM R:\VIRT\T200
> copy R:\VIRT\ROMs\M10.ROM R:\VIRT\M10
> copy R:\VIRT\ROMs\PC8201.ROM R:\VIRT\PC8201
> copy R:\VIRT\ROMs\PC8300.ROM R:\VIRT\PC8300
> copy R:\VIRT\ROMs\KC85.ROM R:\VIRT\KC85
> copy R:\VIRT\ROMs\M100.ROM R:\VIRT\M100
> copy R:\VT.PAT R:\VIRT
> rd R:\VIRT\ROMs /S /Q
> copy E:\T80M100\VIRT\T80M100P.EXE R:\VIRT

Dave Dunfield - https://dunfield.themindfactory.com

Dave ::: https://dunfield.themindfactory.com ::: "Daves Old Computers"->Personal