Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cmucl
cmucl
Commits
a9a90f32
Commit
a9a90f32
authored
Nov 27, 2007
by
rtoy
Browse files
Handle the case where which returns nothing if it can't find the
program, but does set the exit code appropriately.
parent
7df234a8
Changes
1
Show whitespace changes
Inline
Side-by-side
tools/build.sh
View file @
a9a90f32
...
...
@@ -49,7 +49,15 @@ SKIPUTILS=no
# If gmake exists, assume it is GNU make and use it.
if
[
-z
"
$MAKE
"
]
;
then
MAKE
=
"
`
which gmake
`
"
if
echo
$MAKE
|
grep
'^no'
>
/dev/null
;
then
# Some versions of which set an error code if it fails. Others
# say "no foo in <path>". In either of these cases, just assume
# make is GNU make.
if
[
$?
-ne
0
]
;
then
MAKE
=
"make"
fi
if
echo
"X
$MAKE
"
|
grep
'^Xno'
>
/dev/null
;
then
MAKE
=
"make"
fi
fi
...
...
@@ -96,6 +104,7 @@ buildit ()
if
[
"
$ENABLE
"
=
"yes"
]
;
then
set
-x
$TOOLDIR
/clean-target.sh
$TARGET
$TIMER
$TOOLDIR
/build-world.sh
$TARGET
$OLDLISP
$BOOT
(
cd
$TARGET
/lisp
;
$MAKE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment