home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pccts.zip / pccts / install.unbag.reqd < prev    next >
Text File  |  1994-03-31  |  2KB  |  97 lines

  1. #
  2. # install.bag.reqd for PCCTS 1.10
  3. #
  4. # EXECUTE with 'sh install' on unix
  5. #
  6. # shell script to install PCCTS with the following sub-directories in the
  7. # directory where you execute this file ('install').
  8. #
  9. #    antlr dlg h support support/sym support/set support/rexpr
  10. #    lang lang/C bin
  11. #
  12. # The following files must be present for this to work:
  13. #
  14. #    pccts.bag unbag.c install
  15. #
  16. # Terence Parr
  17. # Purdue University
  18. # August 1993
  19. #
  20.  
  21. #
  22. # Note: the 'touch' utility updates the file time (and creates it if it
  23. #       does not exist)
  24. #
  25.  
  26. #
  27. # Make hierarchy
  28. #
  29. echo Welcome to PCCTS 1.10 installation...
  30. echo building directory hierarchy
  31. mkdir antlr
  32. mkdir dlg
  33. mkdir h
  34. mkdir support
  35. mkdir support/sym
  36. mkdir support/set
  37. mkdir support/rexpr
  38. mkdir lang
  39. mkdir lang/C
  40. mkdir lang/Pascal
  41. mkdir bin
  42. #
  43. # Make the unbag program
  44. #
  45. echo making unbag executable in order to unpack your .bag files
  46. cc -o bin/unbag unbag.c
  47. echo unbagging pccts.bag
  48. bin/unbag pccts.bag
  49. rm pccts.bag
  50. #
  51. echo moving bags
  52. mv antlr.bag antlr
  53. mv dlg.bag dlg
  54. mv h.bag h
  55. mv genmk.c support
  56. mv sym.bag support/sym
  57. mv set.bag support/set
  58. mv rexpr.bag support/rexpr
  59. mv C.bag lang/C
  60. mv pascal.bag lang/Pascal
  61. #
  62. # Unbag all of the files
  63. #
  64. echo unbagging...
  65. (cd antlr; ../bin/unbag antlr.bag)
  66. echo antlr done
  67. (cd dlg; ../bin/unbag dlg.bag)
  68. echo dlg done
  69. (cd h; ../bin/unbag h.bag)
  70. echo h done
  71. (cd support/sym; ../../bin/unbag sym.bag)
  72. echo sym done
  73. (cd support/set; ../../bin/unbag set.bag)
  74. echo set done
  75. (cd support/rexpr; ../../bin/unbag rexpr.bag)
  76. echo rexpr done
  77. (cd lang/C; ../../bin/unbag C.bag)
  78. echo C done
  79. (cd lang/Pascal; ../../bin/unbag pascal.bag)
  80. echo Pascal done
  81. #
  82. (cd antlr; touch parser.dlg antlr.c; touch scan.c mode.h; mv makefile.user makefile)
  83. (cd dlg; touch parser.dlg dlg_p.c; touch dlg_a.c mode.h; mv makefile.user makefile)
  84. (cd lang/C; mv makefile.user makefile)
  85. (cd lang/Pascal; mv makefile.user makefile)
  86. rm antlr/antlr.bag dlg/dlg.bag h/h.bag lang/C/C.bag lang/Pascal/pascal.bag
  87. rm support/set/set.bag support/sym/sym.bag support/rexpr/rexpr.bag
  88. echo source installation complete
  89. #
  90. echo making executables...
  91. (cd antlr; make -s)
  92. echo antlr executable now in local bin
  93. (cd dlg; make -s)
  94. echo dlg executable now in local bin
  95. (cd support; cc -o ../bin/genmk genmk.c)
  96. echo PCCTS 1.10 installation complete \(have a nice day\)
  97.