home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / updates+patches / gpatch / examplescripts / gcompareadd < prev    next >
Encoding:
AmigaDOS Script File  |  1998-04-10  |  564 b   |  18 lines

  1. .key old/A,new/A,patch/A,a4,a5,a6,a7,a8,a9,a10
  2. .bra {
  3. .ket }
  4.  
  5. if exists {patch}
  6.     GPatch {old} {patch} T:previousversion{$$} recursive
  7.  
  8.     ; If you have a 'diff' or 'compare' command for binary files, then
  9.     ; you should check now for identical old and new files, because
  10.     ; the recursive mode of GPatch cannot work with a patch of identical
  11.     ; files and you will get an 'circular reference' error message.
  12.  
  13.     GCompare T:previousversion{$$} {new} {patch} {a4} {a5} {a6} {a7} {a8} {a9} {a10}
  14. else
  15.     GCompare {old} {new} {patch} {a4} {a5} {a6} {a7} {a8} {a9} {a10}
  16. endif
  17.  
  18.