Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
ci
Commits
c29a89dd
Commit
c29a89dd
authored
2 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
fix checking whether the repos already exist
parent
06e2e183
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
prepare-opam.sh
+4
-4
4 additions, 4 deletions
prepare-opam.sh
with
4 additions
and
4 deletions
prepare-opam.sh
+
4
−
4
View file @
c29a89dd
...
@@ -44,19 +44,19 @@ eval `opam conf env`
...
@@ -44,19 +44,19 @@ eval `opam conf env`
# Make sure we got the right set of repositories registered.
# Make sure we got the right set of repositories registered.
# By default, they are added with rank 1, i.e. at the top of the list. So we add them with increasing priority.
# By default, they are added with rank 1, i.e. at the top of the list. So we add them with increasing priority.
test
-
d
"
$OPAMROOT
/repo/coq-released"
||
run opam repo add coq-released https://coq.inria.fr/opam/released
test
-
f
"
$OPAMROOT
/repo/coq-released
.tar.gz
"
||
run opam repo
-a
add coq-released https://coq.inria.fr/opam/released
if
echo
"
$@
"
| egrep
"
\b
(dev|beta|rc)"
>
/dev/null
;
then
if
echo
"
$@
"
| egrep
"
\b
(dev|beta|rc)"
>
/dev/null
;
then
# We are compiling against a dev version of something. Get ourselves the dev repositories.
# We are compiling against a dev version of something. Get ourselves the dev repositories.
status
"[prepare-opam] adding Coq dev repositories"
status
"[prepare-opam] adding Coq dev repositories"
run opam repo
-a
add coq-extra-dev https://coq.inria.fr/opam/extra-dev
test
-f
"
$OPAMROOT
/repo/coq-extra-dev.tar.gz"
||
run opam repo
-a
add coq-extra-dev https://coq.inria.fr/opam/extra-dev
run opam repo
-a
add coq-core-dev https://coq.inria.fr/opam/core-dev
test
-f
"
$OPAMROOT
/repo/coq-core-dev.tar.gz"
||
run opam repo
-a
add coq-core-dev https://coq.inria.fr/opam/core-dev
else
else
# No dev version, make sure we do not have the dev repositories.
# No dev version, make sure we do not have the dev repositories.
status
"[prepare-opam] removing Coq dev repositories"
status
"[prepare-opam] removing Coq dev repositories"
run opam repo
-a
remove coq-extra-dev
run opam repo
-a
remove coq-extra-dev
run opam repo
-a
remove coq-core-dev
run opam repo
-a
remove coq-core-dev
fi
fi
test
-
d
"
$OPAMROOT
/repo/iris-dev"
||
run opam repo add iris-dev git+https://gitlab.mpi-sws.org/iris/opam.git
test
-
f
"
$OPAMROOT
/repo/iris-dev
.tar.gz
"
||
run opam repo
-a
add iris-dev git+https://gitlab.mpi-sws.org/iris/opam.git
run opam repo prio iris-dev 1
# make sure this stays at the top
run opam repo prio iris-dev 1
# make sure this stays at the top
echo
echo
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment