home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pccts.zip
/
pccts
/
install.unbag.reqd
< prev
next >
Wrap
Text File
|
1994-03-31
|
2KB
|
97 lines
#
# install.bag.reqd for PCCTS 1.10
#
# EXECUTE with 'sh install' on unix
#
# shell script to install PCCTS with the following sub-directories in the
# directory where you execute this file ('install').
#
# antlr dlg h support support/sym support/set support/rexpr
# lang lang/C bin
#
# The following files must be present for this to work:
#
# pccts.bag unbag.c install
#
# Terence Parr
# Purdue University
# August 1993
#
#
# Note: the 'touch' utility updates the file time (and creates it if it
# does not exist)
#
#
# Make hierarchy
#
echo Welcome to PCCTS 1.10 installation...
echo building directory hierarchy
mkdir antlr
mkdir dlg
mkdir h
mkdir support
mkdir support/sym
mkdir support/set
mkdir support/rexpr
mkdir lang
mkdir lang/C
mkdir lang/Pascal
mkdir bin
#
# Make the unbag program
#
echo making unbag executable in order to unpack your .bag files
cc -o bin/unbag unbag.c
echo unbagging pccts.bag
bin/unbag pccts.bag
rm pccts.bag
#
echo moving bags
mv antlr.bag antlr
mv dlg.bag dlg
mv h.bag h
mv genmk.c support
mv sym.bag support/sym
mv set.bag support/set
mv rexpr.bag support/rexpr
mv C.bag lang/C
mv pascal.bag lang/Pascal
#
# Unbag all of the files
#
echo unbagging...
(cd antlr; ../bin/unbag antlr.bag)
echo antlr done
(cd dlg; ../bin/unbag dlg.bag)
echo dlg done
(cd h; ../bin/unbag h.bag)
echo h done
(cd support/sym; ../../bin/unbag sym.bag)
echo sym done
(cd support/set; ../../bin/unbag set.bag)
echo set done
(cd support/rexpr; ../../bin/unbag rexpr.bag)
echo rexpr done
(cd lang/C; ../../bin/unbag C.bag)
echo C done
(cd lang/Pascal; ../../bin/unbag pascal.bag)
echo Pascal done
#
(cd antlr; touch parser.dlg antlr.c; touch scan.c mode.h; mv makefile.user makefile)
(cd dlg; touch parser.dlg dlg_p.c; touch dlg_a.c mode.h; mv makefile.user makefile)
(cd lang/C; mv makefile.user makefile)
(cd lang/Pascal; mv makefile.user makefile)
rm antlr/antlr.bag dlg/dlg.bag h/h.bag lang/C/C.bag lang/Pascal/pascal.bag
rm support/set/set.bag support/sym/sym.bag support/rexpr/rexpr.bag
echo source installation complete
#
echo making executables...
(cd antlr; make -s)
echo antlr executable now in local bin
(cd dlg; make -s)
echo dlg executable now in local bin
(cd support; cc -o ../bin/genmk genmk.c)
echo PCCTS 1.10 installation complete \(have a nice day\)