home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckc095.zip / ckvcdt.com < prev    next >
Text File  |  1989-08-30  |  2KB  |  66 lines

  1. $! DEC/CMS REPLACEMENT HISTORY, Element CKVCDT.COM
  2. $! *3    23-APR-1989 17:22:58 BUDA "Minor fixes"
  3. $! *2    16-APR-1989 17:56:59 BUDA "General work"
  4. $! *1    11-APR-1989 22:55:27 BUDA "Initial creation"
  5. $! DEC/CMS REPLACEMENT HISTORY, Element CKVCDT.COM
  6. $    save_verify = f$verify(0'ckvcdt_verify')
  7. $    on control_y then goto error
  8. $    on warning then goto error
  9. $!
  10. $    delete = "delete"
  11. $    'p3' == 1            ! By default we must compile
  12. $    pid = f$getjpi("","pid")
  13. $    tmp_file = "ckvcdt_''pid'.tmp"
  14. $!
  15. $    module = f$parse(p1,,,"name")
  16. $    src_time = f$file_attributes(p1, "cdt")
  17. $    set noon
  18. $    ass/user nla0: sys$output
  19. $    ass/user nla0: sys$error
  20. $    libr/list='tmp_file'/only='module'/before="''src_time'"  'p2'
  21. $    if .not. $status then goto module_nf
  22. $    set on
  23. $!
  24. $    open/read/error=error tmp 'tmp_file'
  25. $loop:
  26. $    read/end_of_file=module_ok tmp line
  27. $    line = f$edit(line,"collapse,upcase")
  28. $    if line .eqs. module then goto normal_exit
  29. $    goto loop
  30. $!
  31. $module_ok:
  32. $    status = 1
  33. $    'p3' == 0
  34. $    goto exit
  35. $!
  36. $module_nf:
  37. $    status = 1
  38. $    goto exit
  39. $!
  40. $error:
  41. $    status = $status
  42. $    if status then status = "%x08000002"
  43. $    goto exit
  44. $!
  45. $normal_exit:
  46. $    status = $status
  47. $    goto exit
  48. $!
  49. $exit:
  50. $    if f$trnlnm("tmp") .nes. "" then close tmp/nolog
  51. $    if f$search(tmp_file) .nes. "" then delete 'tmp_file';*
  52. $    save_verify = f$verify(save_verify)
  53. $    exit 'status' .or. %x10000000
  54. $!
  55. $!    001    MAB     3-MAR-1989
  56. $!        Original
  57. $!
  58. $!
  59. $!    P1 =    File.ext to compare against
  60. $!    P2 =    Object library name
  61. $!    P3 =    Symbol name to return result
  62. $!        0 (false) if module should not be compiled
  63. $!        1 (true) if module should be compiled
  64. $!
  65. $!
  66.