4 # This script produces a h316rc file which has to be sourced by
7 # Usage: Just run and answer the questions. Then use
8 # the h316rc file by typing ". h316rc". You
9 # can also include that into your .bashrc etc.
10 # All paths in the file will be absolut.
14 echo "Writing out configuration file."
16 touch h316rc ||
echo "Error! Could not write to h316rc."
18 # h316rc generated by Hachti's install.sh
20 export PATH=\$H316/bin:\$PATH
25 echo "Writing out start script."
27 touch H316.sh ||
echo "Error! Could not write to H316.sh."
30 # H316.sh generated by Hachti's install.sh
32 echo "Now you are in the H316 build environment."
33 bash --init-file \$H316/h316rc
34 echo "Left H316 build environment."
42 ***************************************************************
44 Now the necessary environment for the H316 build system
47 You have one possibility:
48 a) Source the h316rc file into your current shell!
52 to build all the stuff inside. When make successfully finishes,
55 Have a lot of fun and good luck!
56 (You should have installed GNU make, GCC, bash and friends!)
58 ***************************************************************
64 echo -e "Determining H316 root directory."
65 if [ ! -f bin
/asm
]; then
66 echo "Error! This script MUST be run from H316 root directory!"
70 echo -e "H316 root directory is: $H316.\n"
72 echo -e "Generating SIMH simulator settings."
75 while [ ! "$simh_set" ]; do
77 if [ "$search_simh" ]; then
83 echo -e "Using SIMH executable: $simh"
84 echo -ne "Is that correct? [Y/n]:"
87 if [ "$answer" == "n" ]; then
94 if [ ! "$simh" ]; then
95 echo -ne "Please specify absolute path to \
96 SIMH h316 executable:"
99 if [ ! -x "$simh" ]; then
100 echo "Error! Not an executable: $simh";
106 echo "Generating simulator symlink:"
108 ln -sf $simh_set $H316/bin
/h316
109 echo -e "$simh_set => $H316/bin/h316\n"