Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
ea8b46dd
Commit
ea8b46dd
authored
Oct 05, 2015
by
POTTIER Francois
Browse files
Fixed find-menhir.sh to avoid infinite loop.
parent
159fe729
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/find-menhir.sh
View file @
ea8b46dd
#!/bin/sh
#!/bin/
ba
sh
# This script tries to find the Menhir executable.
# This is useful because we would like the demos
...
...
@@ -13,7 +13,9 @@
# This loop assumes that we are somewhere within
# the Menhir distribution, so by going up, we will
# end up at the root of the distribution.
while
!
[
-d
src
]
;
do
attempts
=
2
while
[
$attempts
-gt
0
]
&&
!
[
-d
src
]
;
do
let
attempts
=
attempts-1
cd
..
done
LOCAL
=
src/_stage1/menhir.native
...
...
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