Skip to content

Commit 415a698

Browse files
authored
Overhaul of loadup scripts (#1699)
* Make medley.sh and its associated scripts POSIX compliant - i.e., debashify them * Added config file for medley script, medley now reads from config file and prepends arguemnts from file to the copmmand line arguments * WIP. Updates to medley.sh scripts. * WIP. More on medley.sh and friends update. * WIP. Medley redo * WIP. Debugging new medley scripts * Renamed medley.sh/medley.command to be medley_main.sh. Added code to compile single medley.sh/medley.command script by inlining all of the source'd medley_*.sh files. * Add temp fix for cygwin Issue #1685 * Minor fixup to medley_utils.sh; take debug code out out of run_medley * Add README to medley directory to explain how to compile medley.sh (medley.command). * Ooops. This time really adding the README file to the medley directory explaining how to compile medley.sh (medley.command) * Update loadup- scripts to use updated medley scripts rather than run-medley * Fix default setting of $config_file in medley_configfile.sh * Redo medley compile to pick up last commikt * Fixing how maiko exe is found and sysout argument error processing - both issues discovered testing on MAcOS * In medley_configfile, replace echo with printf %s because echo - does not work in zsh * Supress config file on loadups calls to Medley * Add oldschool support (use original run-medley) to loadup scripts; improve FAILURE detection so loadup-all won't proceed once one of the components fails * Add in medley_args.sh add -prog as synonym to --maikoprog to aid in loadup scripts; in medley_run.sh script try to get a good exit code for call to maiko, especially useful for loadup scripts * Run loadup scripts thru shellcheck and update as necessary to make Posix compliant * Get rid of -nt comparisons in loadup-setup.sh because they are not posix-complaint. They were not really needed anyway. * Removing (for now) use of lde exit codes to decide FAILURE case in loadup-setup.sh since exit codes from lde apperar to be inverted on MacOS. * Update medley man page. Add - functionality to more args is medley_args.sh * Compile medley.sh with changes from last commit * Ooops. Left medley_args.sh changes out of last commit. Rectifying here. * Added support for LDEKEYBOARDTYPE to medley_run to match run-medley * Add to medley.sh: auto numbered id's and titles with id's inserted * Cleanup some shellcheck issues in medley_main.sh * fix maiko args -nh-xxx. were -nethub-xxxx. In medley_run.sh * Overhaul handling of pass-on args to manage the quoting issues prevelant in the previous implementation * Cleanup minor shellcheck issues in medley_*.sh scripts * Add underscore as character allowed in ids - makes things clearer when id used with + * Add a self-numbering id to medley calls in loadup scripts * Put workaround in medley_run.sh for Issue #1702 - issues with sysout arg processing in Maiko * Oops. messed up LDESRCSYSOUT in last commit. should be LDESOURCESYSOUT * compile medley.sh
1 parent 4272a6e commit 415a698

29 files changed

+3686
-727
lines changed

docs/man-page/man_medley.html

Lines changed: 62 additions & 50 deletions
Large diffs are not rendered by default.

docs/man-page/medley.1

Lines changed: 199 additions & 102 deletions
Large diffs are not rendered by default.

docs/man-page/medley.1.gz

1.24 KB
Binary file not shown.

docs/man-page/medley.1.md

Lines changed: 108 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ Flags
4141
-z, \-\-man
4242
: Show the man page for medley
4343

44+
-c [*FILE* | -], \-\-config [*FILE* | -]
45+
: Use *FILE* as the config file for this run of Medley. See information on *CONFIG FILE* below. If *FILE* is "-",
46+
then suppress the use of a config file for this run of Medley.
47+
4448
-f, \-\-full
4549
: Start Medley from the standard "full" sysout. full.sysout includes a complete Interlisp and CommonLisp environment
4650
with a standard set of development tools. It does not include any of the applications built using Medley.
@@ -57,88 +61,122 @@ applications including Notecards, Rooms and CLOS. It also includes pre-installe
5761
documentation.
5862
(See *SYSOUT_FILE* below for more information on starting sysouts.)
5963

60-
-e, \-\-interlisp (relevent only when \-\-apps is specified)
61-
: Make the initial Exec window within Medley be an Interlisp Exec. Default is to start in an XCL Exec.
62-
63-
-n, \-\-noscroll
64-
: Ordinarily Medley displays scroll bars to enable the user to pan the Medley virtual display within the
64+
-u, \-\-continue
65+
: Nullify any prior setting of the sysout file (e.g., from the config file) - causing Medley to start from
66+
the virtual memory file resulting from the previous invocation (with the same values for --id and --logindir),
67+
if any. If there is no matching virtual memory file, Medley will start from the full.sysout (see -f/--full above).
68+
Equivalent to "-y -". (See *SYSOUT FILE* section below.)
69+
70+
-y [*SYSOUT_FILE* | -], \-\-sysout [*SYSOUT-FILE* | -]
71+
: Start Medley from the specified *SYSOUT-FILE*. This is an alternative to specifying the *SYSOUT-FILE*
72+
as the last argument on the command line (but before any *PASS_ON_ARGS*). It can be used to specify the
73+
*SYSOUT-FILE* in the config file (see information on *CONFIG FILE* below). If *SYSOUT-FILE* is "-", then
74+
any prior setting of the sysout file (e.g., from the config file) is nullified (see -u/--continue above).
75+
(See *SYSOUT FILE* section below.)
76+
77+
-e [+ | -], \-\-interlisp [+ | -]
78+
: If value is "+" or no value, make the initial Exec window within Medley be an Interlisp Exec.
79+
If value is "-", make the initial Exec window be the default XCL Exec.
80+
This flag applies only when the --apps flag is used.
81+
82+
-n [+ | -], \-\-noscroll [+ | -]
83+
: Medley ordinarily displays scroll bars to enable the user to pan the Medley virtual display within the
6584
Medley window. This is true even when the entire virtual display fits within the window. Specifying
66-
\-\-noscroll turns off the scroll bars. Note: If \-\-noscroll is specified and the virtual screen is larger
85+
"-n +" (--noscroll +) turns off scroll bars. Specifying "-n -" (--scroll -) turns on scroll bars.
86+
Specifying -n (--noscroll) with no value is equivalent to specifying "--noscroll +". Default
87+
is scroll bars off. Note: If scroll bars are off and the virtual screen is larger
6788
than the window, there will be no way to pan to the non-visible parts of the virtual display.
6889

69-
-g *WxH*, \-\-geometry *WxH*
90+
-g [*WxH* | -], \-\-geometry [*WxH* | -]
7091
: Sets the size of the X Window (or VNC window) that Medley runs in to be Width x Height. (Full X Windows
71-
geomtery specification with +X+Y is not currently supported). If \-\-geometry is not specified but \-\-screensize is,
92+
geomtery specification with +X+Y is not currently supported).
93+
If a value of "-" is given, geometry is set to the default value.
94+
If \-\-geometry is not specified but \-\-screensize is,
7295
then the window size will be determined based on the \-\-screensize values and the \-\-noscroll flag. If neither
7396
\-\-geometry nor \-\-screensize is provided, then the window size is set to 1440x900 if \-\-noscroll is set and 1462x922
74-
if \-\-noscroll is not set.
97+
if \-\-noscroll is not set. (Also see note below under *CONFIG FILE* on the use of geometry and screensize
98+
in config files.)
7599

76-
-s *WxH*, \-\-screensize *WxH*
100+
-s [*WxH* | -], \-\-screensize [*WxH* | -]
77101
: Sets the size of the virtual display as seen from Medley's point of view.
102+
If a value of "-" is given, screensize is set to the default value.
78103
The Medley window is an unscaled viewport onto this virtual display. If \-\-screensize is not specified but
79104
\-\-geometry is, then the virtual display size will be set so that the entire virtual display fits into the given
80105
window geometry. If neither \-\-screensize nor \-\-geometry is provided, then the screen size is set to 1440x900.
106+
(Also see note below under *CONFIG FILE* on the use of geometry and screensize in config files.)
107+
108+
-ps [*N* | -], --pixelscale [*N* | -]    \*\* **Applicable only when display is SDL-based (e.g., on Windows/Cygwin)** \*\*
109+
: Sets the pixel scaling factor to *N*. If value of "-" is given, the pixel scale factor is set to its default of 1.
81110

82-
-t *STRING*, \-\-title *STRING*
83-
: Use STRING as title of Medley window. Ignored when when the \-\-vnc flag is set or when running on Windows (Docker)
84-
installations.
111+
-t [*STRING* | -], \-\-title [*STRING* | -]
112+
: Use STRING as title of Medley window. If the value of "-" is given, sets the title to its default value ("Medley Interlisp").
113+
Ignored when when the \-\-vnc flag is set.
85114

86-
-d *:N*, \-\-display *:N*    \*\* **Not applicable to Windows (Docker) installations** \*\*
87-
~ Use X display :N. Defaults to the value of $DISPLAY. This flag is ignored when the \-\-vnc flag is set as
88-
well as on Windows (Docker) installations.
115+
-d [*:N* | -], \-\-display [*:N* | -]
116+
: Use X display :N. If value is "-", reset display to its default value. Default value is the value of $DISPLAY.
117+
On platforms that support X Windows as well as SDL, the value of -d (--display) should
118+
be set to "SDL" to select using SDL instead of X Windows. This flag is ignored on the Windows/Cygwin platform and when the \-\-vnc flag is
119+
set on Windows System for Linux.
89120

90-
-v, \-\-vnc    \*\* **Applicable only to WSL installations** \*\*
91-
: Use a VNC window running on the Windows side instead of an X window.
92-
The VNC window will folllow the Windows desktop scaling setting allowing
121+
-v [+ | -] , \-\-vnc [+ | -]    \*\* **Applicable only to WSL installations** \*\*
122+
: If value is "+" or no value is given, then use a VNC window running on the Windows side instead of an X window. If value is "-", then do not
123+
use a VNC window, relying instead on a standard X Window.
124+
A VNC window will folllow the Windows desktop scaling setting allowing
93125
for much more usable Medley on high resolution displays. On WSL, X windows
94126
do not scale well. This flag is always set for WSL1 installations.
95127

96128
-i [*ID_STRING* | - | \-\-], \-\-id [*ID_STRING* | - | \-\-]
97-
: Use ID_STRING as the id for this run of Medley, iunless ID_STRING is "-" or "\-\-".
98-
If ID_STRING is "-", then use the basename of $MEDLEYDIR as the id.
99-
If ID_STRING is "\-\-", then use the basename of the parent directory of $MEDLEYDIR as the id.
129+
: Use ID_STRING as the id for this run of Medley, unless ID_STRING is "-", "\-\-", or "\-\-\-".
130+
If ID_STRING is "-", then reset the id to "default" (e.g., if it was previously set in the
131+
config file). If ID_STRING is "\-\-", then use the basename of $MEDLEYDIR as the id.
132+
If ID_STRING is "\-\-\-", then use the basename of the parent directory of $MEDLEYDIR as the id.
100133
Only one instance of Medley with a given id can run at a time.
101134
The id is used to distinguish the virtual memory stores so that multiple
102135
instances of Medley can run simultaneously. Default id is "default".
103136

104-
-m *N*, \-\-mem *N*
105-
: Set Medley to run in *N* MB of virtual memory. Defaults to 256MB.
137+
-m [*N* | -], \-\-mem [*N* | -]
138+
: Set Medley to run in *N* MB of virtual memory. Defaults to 256MB. If a value of "-" is given, resets
139+
to default value.
106140

107-
-p *FILE*, \-\-vmem *FILE*
141+
-p [*FILE* | -], \-\-vmem [*FILE* | -]
108142
: Use FILE as the Medley virtual memory (vmem) store. FILE must be writeable by the current user.
109143
Care must be taken not to use the same vmem FILE for two instances of Medley running simultaneously.
110144
The \-\-id flag will not protect against vmem collisions when the \-\-vmem flag is used.
111-
Default is to store the vmem in LOGINDIR/vmem/lisp_XXX.virtualmem, where XXX is the id of this
112-
Medley run (see \-\-id flag above). See \-\-logindir below for setting of LOGINDIR. On Windows (Docker) installations, *FILE* is specified in the Medley file system, not the host Windows file system.
145+
If the value "-" is given, then resets the vmem file to the default.
146+
Default is to store the vmem in LOGINDIR/vmem/lisp_III.virtualmem, where III is the id of this
147+
Medley run (see \-\-id flag above). See \-\-logindir below for setting of LOGINDIR.
113148

114149
-r \[*FILE* | -], \-\-greet \[*FILE* | -]
115150
: Use FILE as the Medley greetfile, unless FILE is "-" in which case
116151
Medley will start up without using a greetfile. The default Medley greetfile
117152
is $MEDLEYDIR/greetfiles/MEDLEYDIR-INIT, except when the \-\-apps flag is used
118-
in which case it is $MEDLEYDIR/greetfiles/APPS-INIT. On Windows (Docker) installations, *FILE* is
153+
in which case it is $MEDLEYDIR/greetfiles/APPS-INIT. On Windows/Cygwin installations, *FILE* is
119154
specified in the Medley file system, not the host Windows file system.
120155

121-
-x \[*DIR* | -], \-\-logindir \[*DIR* | -]    \*\* **On Linux and WSL installations** \*\*
122-
: Use DIR as LOGINDIR in Medley, unless DIR is "-", in which case use
123-
\$MEDLEYDIR/logindir. DIR (or \$MEDLEYDIR/logindir) must be writeable by the current user.
156+
-x \[*DIR* | - | --], \-\-logindir \[*DIR* | - | --]
157+
: Use DIR as LOGINDIR in Medley. If the value is "--", use
158+
\$MEDLEYDIR/logindir as LOGINDIR.
159+
If a value of "-" is given, then reset LOGINDIR to its default value.
160+
DIR (or \$MEDLEYDIR/logindir) must be writeable by the current user.
124161
LOGINDIR defaults to \$HOME/il. LOGINDIR is used by Medley as the working directory on start-up
125-
and where it loads any "personal" initialization file from.
126-
127-
-x \[*DIR* | -], \-\-logindir \[*DIR* | -]    \*\* **On Windows (Docker) installations** \*\*
128-
: Map DIR in the Windows host file system to /home/medley/il in the Medley
129-
file system (in the Docker container). LOGINDIR is always /home/medley/il from Medley's standpoint. The "-" value is not valid in this case.
162+
and where it loads any "personal" initialization file from. On Windows/Cygwin installations, *FILE* is
163+
specified in the Medley file system, not the host Windows file system.
130164

131-
-u, \-\-update    \*\* **Windows (Docker) installations only** \*\*
132-
: Before running Medley, do a pull to retrieve the latest interlisp/medley docker image from Docker Hub.
165+
-nh *Host:Port:Mac:Debug*, \-\-nethub *Host:Port:Mac:Debug*
166+
: Set the parameters for using Nethub XNS networking. *Host* is the full domain name of the nethub host. *Port* is the port on *Host* that nethub is using.
167+
*Mac* is the Mac address that this instance of Medley should use when contacting the nethub host. *Debug* is the level of nethub debug information
168+
that should be printed on stdout (value is 0, 1, or 2). A *Host* value is required and serves to turn nethub functionality on. *Port*, *Mac* and *Debug*
169+
parameters are optional and will default if left off. Finally, if any of the parameters have a value of "-", any previous setting (e.g., in a config file)
170+
for the parameter will be reset to the default value - which in the case of *Host* is the null string, turning nethub functionality off.
133171

134-
-b, \-\-background    \*\* **Windows (Docker) installations only** \*\*
135-
: Run Medley in background rather than foreground.
172+
-nf, -NF, --nofork
173+
: No fork. Relevant only to the Medley loadup workflow.
136174

137-
-p *PORT*, \-\-port *PORT*    \*\* **Windows (Docker) installations only** \*\*
138-
: Use *PORT* as the port that VNC viewer uses to contact the VNC server within the Docker container. Default is 5900.
175+
-prog *EXE*, --maikoprog *EXE*
176+
: Use *EXE* as the basename of the Maiko executable. Relevant only to the Medley loadup workflow.
139177

140-
-w \[*DISTRO* | -], \-\-wsl \[*DISTRO* | -]    \*\* **Windows (Docker) installations only** \*\*
141-
: Run Medley in the context of the named WSL *DISTRO* instead of within Docker. If *DISTRO* is "-", used the default WSL distro. Equivalent to typing "wsl -d *DISTRO* medley ..." into a Command or Powershell window.
178+
--maikodir *DIR*
179+
: Use *DIR* as the directory containing the Maiko emulator. For testing purposes only.
142180

143181

144182
Other Options
@@ -154,11 +192,33 @@ If no such virtual memory file exists, then Medley will start from the standard
154192
specified in the Medley file system, not the host Windows file system.
155193

156194
*PASS_ON_ARGS*
157-
: All arguments after the "\-\-" flag, are passed unaltered to lde via run-medley.
195+
: All arguments after the "\-\-" flag, are passed unaltered to the Maiko emulator.
196+
158197

198+
CONFIG FILE
199+
===========
200+
A config file can be used to "pre-specify" any of the above command line arguments.
201+
The config file consists of command line arguments (flags or flag-value pairs), *one per line*.
202+
These arguments are read from the config file and prepended to the arguments actually given on
203+
the command line. Since later arguments override earlier arguments, any argument actually given
204+
on the command line will override a conflicting argument given in the config file.
205+
206+
Unless specified using the -c (--config) argument, the default config file will be $MEDLEYDIR/.medley_config,
207+
if it exists, and $HOME/.medley_config, otherwise.
208+
209+
Specifying, "-c -" or "--config -" on the command line will suppress the use of config files for the
210+
current run of Medley.
159211

160-
FILES
161-
=====
212+
*Note:* care must be taken when using -g (--geometry) and/or -s (--screensize) arguments in config files.
213+
If only one of these is specified, then the other is conputed. But if both are specified, then the specified
214+
dimensions are used as given. Unexpected results can arise if one is specified in the config file
215+
but the other is specified on the command line. In this case, the two specified dimensions will be used as given.
216+
It will not be the case, as might be expected, that the dimension given in the config file will be overridden
217+
by a dimension computed from the dimension given on the command line.
218+
219+
220+
OTHER FILES
221+
===========
162222

163223
\$HOME/il
164224
: Default Medley LOGINDIR
@@ -181,4 +241,4 @@ See GitHub Issues: <https://github.com/Interlisp/medley/issues>
181241
COPYRIGHT
182242
=========
183243

184-
Copyright(c) 2023 by Interlisp.org
244+
Copyright(c) 2023-2024 by Interlisp.org

run-medley

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
# LDEDESTSYSOUT name for destination of SaveVM/LOGOUT
1919
# MEDLEYDIR used by init file to set other path variables
2020

21+
#for x in "$@"; do echo $x; done
22+
#exit
23+
2124
inferred_medleydir=false
2225

2326
if [ -z "$MEDLEYDIR" ] ; then

scripts/loadup-all.sh

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,43 @@
11
#!/bin/sh
2+
# shellcheck disable=SC2181
23

3-
if [ ! -x run-medley ] ; then
4-
echo run from MEDLEYDIR
4+
if [ ! -h ./medley ] || [ ! -d ./lispusers ]
5+
then
6+
echo "*** ERROR ***"
7+
echo "You must run $(basename "$0") while the cwd is a Medley top-level directory."
8+
echo "The cwd ($(pwd)) is not a Medley top-level directory."
9+
echo "Exiting."
510
exit 1
611
fi
712

13+
# shellcheck source=./loadup-setup.sh
814
. scripts/loadup-setup.sh
915

10-
if [ "$1" = "-apps" ]; then
16+
# look thru args looking to see if -apps, --apps, or -a was specified in args
17+
apps=true
18+
j=1
19+
jmax=$#
20+
while [ "$j" -le "$jmax" ]
21+
do
22+
if [ "$(eval "printf %s \${${j}}")" = "-a" ] || \
23+
[ "$(eval "printf %s \${${j}}")" = "-apps" ] || \
24+
[ "$(eval "printf %s \${${j}}")" = "--apps" ]
25+
then
1126
apps="./scripts/loadup-apps-from-full.sh"
12-
else
13-
apps="true"
14-
fi
27+
break
28+
fi
29+
done
1530

31+
# Do loadup components
1632
./scripts/loadup-init.sh && \
1733
./scripts/loadup-mid-from-init.sh && \
1834
./scripts/loadup-lisp-from-mid.sh && \
1935
./scripts/loadup-full-from-lisp.sh && \
2036
${apps} && \
2137
./scripts/loadup-aux.sh && \
22-
./scripts/copy-all.sh $1
38+
./scripts/copy-all.sh "$1"
2339

24-
if [ $? -eq 0 ];
40+
if [ $? -eq 0 ]
2541
then
2642
echo "+++++ loadup-all.sh: SUCCESS +++++"
2743
else

scripts/loadup-apps-from-full.sh

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
11
#!/bin/sh
22

3-
if [ ! -x run-medley ] ; then
4-
echo must run from MEDLEYDIR ;
5-
exit 1 ;
3+
if [ ! -h ./medley ] || [ ! -d ./lispusers ]
4+
then
5+
echo "*** ERROR ***"
6+
echo "You must run $(basename "$0") while the cwd is a Medley top-level directory."
7+
echo "The cwd ($(pwd)) is not a Medley top-level directory."
8+
echo "Exiting."
9+
exit 1
610
fi
711

12+
# shellcheck source=./loadup-setup.sh
813
. scripts/loadup-setup.sh
914

1015
loadup_start
1116

12-
export ROOMSDIR=${MEDLEYDIR}/rooms
13-
export CLOSDIR=${MEDLEYDIR}/clos
17+
export ROOMSDIR="${MEDLEYDIR}/rooms"
18+
export CLOSDIR="${MEDLEYDIR}/clos"
1419

15-
export NOTECARDSDIR=${MEDLEYDIR}/notecards
16-
if [ ! -e ${NOTECARDSDIR} ]; then
17-
NOTECARDSDIR=$(cd ${MEDLEYDIR}/../ && pwd)/notecards
18-
if [ ! -e ${NOTECARDSDIR} ]; then
19-
NOTECARDSDIR=$(cd ${MEDLEYDIR}/../../ && pwd)/notecards
20-
if [ ! -e ${NOTECARDSDIR} ]; then
20+
export NOTECARDSDIR="${MEDLEYDIR}/notecards"
21+
if [ ! -e "${NOTECARDSDIR}" ]
22+
then
23+
NOTECARDSDIR=$(cd "${MEDLEYDIR}/../" && pwd)/notecards
24+
if [ ! -e "${NOTECARDSDIR}" ]
25+
then
26+
NOTECARDSDIR=$(cd "${MEDLEYDIR}/../../" && pwd)/notecards
27+
if [ ! -e "${NOTECARDSDIR}" ]
28+
then
2129
NOTECARDSDIR=""
2230
fi
2331
fi
2432
fi
2533

26-
if [ -z "${NOTECARDSDIR}" ]; then
34+
if [ -z "${NOTECARDSDIR}" ]
35+
then
2736
echo "Error: Cannot find the Notecards directory"
2837
echo "It should be located at ${MEDLEYDIR}/../notecards or"
2938
echo "${MEDLEYDIR}/../../notecards. But its not."
@@ -62,6 +71,6 @@ SHH
6271
"
6372
EOF
6473

65-
./run-medley ${scr} -loadup "${cmfile}" "${LOADUP_WORKDIR}/full.sysout"
74+
run_medley "${LOADUP_WORKDIR}/full.sysout"
6675

6776
loadup_finish "apps.sysout" "apps.*"

scripts/loadup-aux.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
#!/bin/sh
22

3-
if [ ! -f run-medley ] ; then
4-
echo run from MEDLEYDIR
3+
if [ ! -h ./medley ] || [ ! -d ./lispusers ]
4+
then
5+
echo "*** ERROR ***"
6+
echo "You must run $(basename "$0") while the cwd is a Medley top-level directory."
7+
echo "The cwd ($(pwd)) is not a Medley top-level directory."
8+
echo "Exiting."
59
exit 1
610
fi
711

12+
# shellcheck source=./loadup-setup.sh
813
. scripts/loadup-setup.sh
914

1015
loadup_start
@@ -26,6 +31,6 @@ cat >"${cmfile}" <<"EOF"
2631
"
2732
EOF
2833

29-
./run-medley ${scr} -loadup "${cmfile}" "${LOADUP_WORKDIR}"/full.sysout
34+
run_medley "${LOADUP_WORKDIR}/full.sysout"
3035

3136
loadup_finish "whereis.hash" "whereis.hash" "exports.all"

scripts/loadup-db-from-full.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
#!/bin/sh
22

3-
if [ ! -x run-medley ] ; then
4-
echo run from MEDLEYDIR
3+
if [ ! -h ./medley ] || [ ! -d ./lispusers ]
4+
then
5+
echo "*** ERROR ***"
6+
echo "You must run $(basename "$0") while the cwd is a Medley top-level directory."
7+
echo "The cwd ($(pwd)) is not a Medley top-level directory."
8+
echo "Exiting."
59
exit 1
610
fi
711

12+
# shellcheck source=./loadup-setup.sh
813
. scripts/loadup-setup.sh
914

1015
loadup_start
@@ -35,7 +40,7 @@ cat >"${cmfile}" <<"EOF"
3540
"
3641
EOF
3742

38-
./run-medley ${scr} -loadup "${cmfile}" "${SYSOUT}"
43+
run_medley "${SYSOUT}"
3944

4045
loadup_finish "fuller.database" "fuller*"
4146

0 commit comments

Comments
 (0)