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

  1. $    Cakefile for RCS.
  2.  
  3. $    If you include this cakefile, every file you to update will
  4. $    be checked if it can be retrieved from the RCS directory,
  5. $    using co with the macro GETFLAGS as argument (default is -u).
  6. $    You can check out files explicitly, in which case the argument
  7. $    is COFLAG (default -l), and check in files, using ci, CIFLAGS
  8. $    and CIMSG (both defaults empty). The targets get, co and ci
  9. $    perform the respective action for all RCS files.
  10.  
  11. #ifndef    GETFLAGS
  12. #define    GETFLAGS     -u
  13. #endif
  14. #ifndef    COFLAGS
  15. #define    COFLAGS     -l
  16. #endif
  17. #ifndef    CIFLAGS
  18. #define    CIFLAGS
  19. #endif
  20. #ifndef    CIMSG
  21. #define    CIMSG
  22. #endif
  23.  
  24. %:    RCS/%,v            if exist RCS/%,v
  25.     co GETFLAGS %
  26.  
  27. %.co&:    RCS/%,v            if exist RCS/%,v
  28.     co COFLAGS %
  29.  
  30. %.ci&:    %            if exist RCS/%,v
  31.     ci CIFLAGS CIMSG %
  32.  
  33. get&:    [[sub RCS/X,v X RCS/*]]
  34.  
  35. co&:    [[sub RCS/X,v X.co RCS/*]]
  36.  
  37. ci&:    [[sub RCS/X,v X.ci RCS/*]]
  38.