-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmk_cross
executable file
·56 lines (47 loc) · 1.21 KB
/
mk_cross
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
# --- Copyright University of Sussex 1993. All rights reserved. ----------
# File: C.unix/src/mksyscomp
# Purpose: Build saved images for POPC, POPLINK and POPLIBR
# Author: John Gibson, Jun 24 1988 (see revisions)
# Usage:
# mksyscomp [-d] [image ...]
# where 'image' is popc, poplink or poplibr
if [ "$popautolib" = "" ]; then
echo "mksyscomp: doing pop/com/popenv to set environment vars"
. $usepop/pop/com/popenv.sh
fi
DEBUG=false
POP_ARCH=""
while true ; do
opt=$1
echo "opt=$opt"
case "$opt" in
-a=*)
POP_ARCH=`echo ${opt} | sed 's,-a=,,'`
shift
;;
-d) DEBUG=true
shift
;;
*)
break
;;
esac
done
for IMAGE
do
echo "IMAGE=$IMAGE"
corepop %nort %noinit << ****
lvars savedir = current_directory;
vars pop_architecture = '$POP_ARCH';
printf(pop_architecture, 'pop_architecture = %p\n');
'./syscomp' -> current_directory;
$DEBUG -> pop_debugging;
printf('calling pop11_compile\n');
pop11_compile("make_$IMAGE");
printf('pop11_compile done\n');
savedir -> current_directory;
make_saved_image('../pop/$IMAGE.psv');
sysexit();
****
done