1
0
mirror of https://github.com/PDP-10/its.git synced 2026-02-26 17:03:20 +00:00

Add check in build script when making a new directory.

Look for FILE NOT FOUND to ensure the script is synchronized with the
output.  Also make a separate mkdir proc that's called throughout.
This commit is contained in:
Lars Brinkhoff
2019-02-21 15:44:04 +01:00
parent f39d0ab892
commit bb69c7e680
7 changed files with 21 additions and 36 deletions

View File

@@ -24,16 +24,11 @@ expect -timeout 3000 "E-O-T"
respond "_" "quit\r"
expect ":KILL"
respond "*" ":print sys1;..new. (udir)\r"
type ":vk\r"
respond "*" ":print sys2;..new. (udir)\r"
type ":vk\r"
respond "*" ":print sys3;..new. (udir)\r"
type ":vk\r"
respond "*" ":print device;..new. (udir)\r"
type ":vk\r"
respond "*" ":print cstacy;..new. (udir)\r"
type ":vk\r"
mkdir "sys1"
mkdir "sys2"
mkdir "sys3"
mkdir "device"
mkdir "cstacy"
# TCTYP
respond "*" ":midas sys1; ts tctyp_syseng;tctyp\r"
@@ -149,12 +144,6 @@ respond "*" ":link dragon;hourly modems,channa;ts modems\r"
respond "*" ":midas channa;rakash papsav_sysen3;papsav\r"
expect ":KILL"
# sources dump tape now creates dragon directory and populates
# with an initial dragon; dragon hoard file, which is required
# by PFT
#
# respond "*" ":print dragon;..new. (udir)\r"
#
respond "*" ":midas dragon;rakash pfthmg_syseng; pft\r"
respond "mcp=" "0\r"
expect ":KILL"

View File

@@ -133,6 +133,12 @@ proc setup_timeout {} {
expect_after timeout abort
}
proc mkdir {name} {
respond "*" ":print $name;..new. (udir)\r"
expect "FILE NOT FOUND"
type ":vk\r"
}
set ip [ip_address [lindex $argv 0]]
set gw [ip_address [lindex $argv 1]]

View File

@@ -37,8 +37,7 @@ respond "*" ":link comlap;faslap fasl,comlap;fl.fas >\r"
respond "*" ":link comlap;maklap fasl,comlap;mk.fas >\r"
respond "*" ":link comlap;initia fasl,comlap;in.fas >\r"
respond "*" ":link comlap;srctrn fasl,comlap;st.fas >\r"
respond "*" ":print lspdmp;..new. (udir)\r"
type ":vk\r"
mkdir "lspdmp"
respond "*" "lisp\013"
respond "Alloc?" "n\r"
respond "*" "(load \"comlap;ccload\")"

View File

@@ -56,8 +56,7 @@ respond "*" ":midas rwk;lfsdef fasl_rwk;lfsdef\r"
expect ":KILL"
respond "*" ":midas rat;ratlap fasl_rat;ratlap\r"
expect ":KILL"
respond "*" ":print maxdmp;..new. (udir)\r"
type ":vk\r"
mkdir "maxdmp"
respond "*" ":link maxdmp;ratlap fasl,rat;ratlap fasl\r"
respond "*" ":link libmax;lusets fasl,liblsp;\r"
@@ -91,10 +90,8 @@ type ":kill\r"
# build MAXTUL FASL files
respond "*" ":print maxerr;..new. (udir)\r"
type ":vk\r"
respond "*" ":print maxer1;..new. (udir)\r"
type ":vk\r"
mkdir "maxerr"
mkdir "maxer1"
respond "*" "complr\013"
respond "_" "maxtul;strmrg\r"
@@ -132,8 +129,7 @@ type ":kill\r"
# build macsyma
respond "*" ":print macsym;..new. (udir)\r"
type ":vk\r"
mkdir "macsym"
respond "*" ":link macsym;mdefun fasl,libmax;\r"
@@ -229,10 +225,8 @@ respond "_" "mrg;macros\r"
respond "_" "\032"
type ":kill\r"
respond "*" ":print maxout;..new. (udir)\r"
type ":vk\r"
respond "*" ":print share2;..new. (udir)\r"
type ":vk\r"
mkdir "maxout"
mkdir "share2"
# Here we actually perform the compilation of Macsyma sources
# For some unknown reason, compilation fails in the same place

View File

@@ -29,8 +29,7 @@ expect ":KILL"
# Gague free disk blocks.
respond "*" ":listf sys\r"
respond "*" ":print sysbin;..new. (udir)\r"
type ":vk\r"
mkdir "sysbin"
respond "*" ":midas sysbin;_midas;midas\r"
expect ":KILL"
respond "*" ":job midas\r"

View File

@@ -1541,8 +1541,7 @@ respond "*" ":palx sysbin;vxgp bin_sysen2;xgp\r"
expect ":KILL"
# CCONS. STUFF prefers it to be in the CONS directory.
respond "*" ":print cons;..new. (udir)\r"
type ":vk\r"
mkdir "cons"
respond "*" ":palx cons;_lmcons;ccons\r"
expect ":KILL"

View File

@@ -7,8 +7,7 @@ expect ":KILL"
respond "*" ":xfile assem xfile\r"
expect -timeout 300 "Assembly done!"
respond "*" ":print mudsav; ..new. (udir)\r"
type ":vk\r"
mkdir "mudsav"
respond "*" ":stinkm\r"
respond "STINK." "MMUD56 STINK\033@\033\033"