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

  1. #
  2. # install for PCCTS 1.20
  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 lang/Pascal bin
  11. #
  12. # The following files must be present for this to work:
  13. #
  14. #    pccts.bag install
  15. #
  16. # Terence Parr, Will Cohen, Russell Quong, and Hank Dietz
  17. # Purdue University and U of MN
  18. # 1989-1994
  19. #
  20.  
  21. #
  22. # Make hierarchy
  23. #
  24.     echo
  25.     echo "               Welcome to PCCTS 1.20 installation"
  26.     echo "                     Released April 1, 1994"
  27.     echo
  28.     echo "                           Featuring"
  29.     echo "         ANTLR  -- ANother Tool for Language Recognition"
  30.     echo "         DLG    -- DFA-based Lexical Analyzer"
  31.     echo "         C      -- ANSI grammar with symbol table management"
  32.     echo "         Pascal -- ISO Pascal with symbol table management"
  33.     echo
  34. echo building directory hierarchy
  35. mkdir antlr
  36. mkdir dlg
  37. mkdir h
  38. mkdir support
  39. mkdir support/genmk
  40. mkdir support/sym
  41. mkdir support/set
  42. mkdir support/rexpr
  43. mkdir lang
  44. mkdir lang/C
  45. mkdir lang/Pascal
  46. mkdir bin
  47. echo unbagging pccts.bag
  48. /bin/sh 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.bag support/genmk
  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/sh antlr.bag)
  66. echo antlr done
  67. (cd dlg; /bin/sh dlg.bag)
  68. echo dlg done
  69. (cd h; /bin/sh h.bag)
  70. echo h done
  71. (cd support/sym; /bin/sh sym.bag)
  72. echo sym done
  73. (cd support/set; /bin/sh set.bag)
  74. echo set done
  75. (cd support/rexpr; /bin/sh rexpr.bag)
  76. echo rexpr done
  77. (cd support/genmk; /bin/sh genmk.bag)
  78. echo genmk done
  79. (cd lang/C; /bin/sh C.bag)
  80. echo C done
  81. (cd lang/Pascal; /bin/sh pascal.bag)
  82. echo Pascal done
  83. #
  84. (cd antlr; touch parser.dlg antlr.c; touch scan.c mode.h; mv makefile.user makefile)
  85. (cd dlg; touch parser.dlg dlg_p.c; touch dlg_a.c mode.h; mv makefile.user makefile)
  86. (cd lang/C; mv makefile.user makefile)
  87. (cd lang/Pascal; mv makefile.user makefile)
  88. rm antlr/antlr.bag dlg/dlg.bag h/h.bag lang/C/C.bag lang/Pascal/pascal.bag
  89. rm support/set/set.bag support/sym/sym.bag support/rexpr/rexpr.bag
  90. rm support/genmk/genmk.bag
  91. echo source installation complete
  92. #
  93. echo making executables...
  94. (cd antlr; make -s)
  95. echo antlr executable now in local bin
  96. (cd dlg; make -s)
  97. echo dlg executable now in local bin
  98. (cd support/genmk; make -s; mv genmk ../../bin)
  99. echo PCCTS 1.20 installation complete \(have a nice day\)
  100.