X-Git-Url: https://pd.if.org/git/?p=pccts;a=blobdiff_plain;f=install.mpw;fp=install.mpw;h=d8cdaaef5973bfc3998de17d7d5ffa135aaefa49;hp=0000000000000000000000000000000000000000;hb=4d4e65f78c8f851575664a0405091590260c965f;hpb=6d2ac3f332762a7d8fd47331a3a53ab59612c8bd diff --git a/install.mpw b/install.mpw new file mode 100755 index 0000000..d8cdaae --- /dev/null +++ b/install.mpw @@ -0,0 +1,80 @@ +# Note: this script assumes that your MPW and PCCTS directories are +# of a standard configuration. + +# To install PCCTS: 'Set Directory' to the directory containing this +# file (should be the main PCCTS directory) and execute this script. +# +# By default, it will install ANTLR and DLG in your {MPW}Tools folder. +# +# ANTLR and DLG have Commando interfaces, check them out. +# +# Report MPW-Specific problems to Scott Haney at haney@random.llnl.gov. + +Echo "# `Date -t` ----- Building PCCTS v1.33 for MPW." + +# Make 'Macintosh' folders to hold object files. + +Echo "# `Date -t` ----- Making Object File Folders." +If (!`exists :dlg:Macintosh:`) + NewFolder :dlg:Macintosh: +End +If (!`exists :antlr:Macintosh:`) + NewFolder :antlr:Macintosh: +End +If (!`exists :support:set:Macintosh:`) + NewFolder :support:set:Macintosh: +End +If (!`exists :support:sym:Macintosh:`) + NewFolder :support:sym:Macintosh: +End + +Echo "# `Date -t` ----- Done." +Echo "#" + +# DLG build commands + +Echo "# `Date -t` ----- Building DLG." +Echo "# `Date -t` ----- Analyzing dependencies." +Directory :dlg: +Begin + If (!`exists dlg.make`) + Move -y makefile.mpw dlg.make + End + If (!`exists dlg.r`) + Move -y dlg.mpw.r dlg.r + End + Echo "Set Echo 1" + Make Install -f dlg.make +End > dlg.makeout +Echo "# `Date -t` ----- Executing build commands." +dlg.makeout +Delete dlg.makeout +Echo "# `Date -t` ----- Done." +Echo "#" +Directory :: + +# ANTLR build commands + +Echo "# `Date -t` ----- Building ANTLR." +Echo "# `Date -t` ----- Analyzing dependencies." +Directory :antlr: +Begin + If (!`exists antlr.make`) + Move -y makefile.mpw antlr.make + End + If (!`exists antlr.r`) + Move -y antlr.mpw.r antlr.r + End + Echo "Set Echo 1" + Make Install -f antlr.make +End > antlr.makeout +Echo "# `Date -t` ----- Executing build commands." +antlr.makeout +Delete antlr.makeout +Echo "# `Date -t` ----- Done." +Echo "#" +Directory :: + +# Done + +Echo "# `Date -t` ----- Done Building PCCTS v1.33. Have a nice day."