Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
curry
pakcs
Commits
1afe0bfa
Commit
1afe0bfa
authored
Feb 24, 2021
by
Michael Hanus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make configure-prolog script robust against `readlink` errors
parent
c4cd147c
Pipeline
#1607
passed with stages
in 217 minutes and 4 seconds
Changes
1
Pipelines
25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
scripts/configure-prolog.sh
scripts/configure-prolog.sh
+4
-2
No files found.
scripts/configure-prolog.sh
View file @
1afe0bfa
...
...
@@ -43,7 +43,8 @@ if [ ! -x "$SICSTUSPROLOG" -a ! -x "$SWIPROLOG" ] ; then
SICSTUSPROLOG
=
`
which sicstus 2> /dev/null
`
fi
if
[
-x
"
$SICSTUSPROLOG
"
]
;
then
SICSTUSPROLOG
=
`
readlink
-f
$SICSTUSPROLOG
`
# try to get absolute path name:
SICSTUSPROLOG
=
`
readlink
-f
$SICSTUSPROLOG
2> /dev/null
||
echo
$SICSTUSPROLOG
`
echo
"halt."
|
$SICSTUSPROLOG
>
/tmp/sicstusout
$$
2>&1
if
[
$?
-ne
0
]
;
then
SICSTUSPROLOG
=
...
...
@@ -62,7 +63,8 @@ if [ -z "$SICSTUSPROLOG" ] ; then
SWIPROLOG
=
`
which swipl 2> /dev/null
`
fi
if
[
-x
"
$SWIPROLOG
"
]
;
then
SWIPROLOG
=
`
readlink
-f
$SWIPROLOG
`
# try to get absolute path name:
SWIPROLOG
=
`
readlink
-f
$SWIPROLOG
2> /dev/null
||
echo
$SWIPROLOG
`
echo
"halt."
|
$SWIPROLOG
>
/tmp/swiprologout
$$
2>&1
if
[
$?
-ne
0
]
;
then
SWIPROLOG
=
...
...
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