home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume12 / cake / part06 / Lib / Archive next >
Encoding:
Text File  |  1987-10-15  |  397 b   |  16 lines

  1. $    Cakefile to handle archives.
  2.  
  3. $    Define ARCH to be the name of the archive you want files
  4. $    to be automatically extracted from. The first rule performs
  5. $    this extraction; the second updates the archive.
  6.  
  7. #ifndef    ARCH
  8.         it's no use trying to use Archive without defining ARCH
  9. #endif
  10.  
  11. %1:        ARCH        if {{ar t ARCH | grep \\\^%1\\\$}}
  12.         ar x ARCH %1
  13.  
  14. ARCH.up&:    [[ar t ARCH]]
  15.         ar ru ARCH [[ar t ARCH]]
  16.