-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmk_cross
executable file
·65 lines (55 loc) · 1.4 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
56
57
58
59
60
61
62
63
64
#!/bin/bash
# --- 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
# Stop on error.
set -e
: "${usepop:?}"
# shellcheck disable=SC2154
if [ "$popautolib" = "" ]; then
echo "mksyscomp: doing pop/com/popenv to set environment vars"
# shellcheck disable=SC1091
. "$usepop/pop/com/popenv.sh"
fi
: "${popautolib:?}"
: "${popsys:?}"
DEBUG=false
POP_ARCH=""
while true ; do
opt="$1"
echo "opt=$opt"
case "$opt" in
-a=*)
POP_ARCH="${opt/-a=/}"
shift
;;
-d)
DEBUG=true
shift
;;
*)
break
;;
esac
done
for IMAGE
do
echo "IMAGE=$IMAGE"
"$popsys/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