Skip to content

Commit

Permalink
opam installation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
palmskog committed Jan 13, 2017
1 parent ce7d126 commit 39cbbc1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ env:
- COQ_VERSION=8.5.3
- SSREFLECT_VERSION=1.6
- VERDI_RAFT_BRANCH=master
- STRUCTTACT_BRANCH=master
matrix:
- DOWNSTREAM=none
before_install:
Expand Down
2 changes: 1 addition & 1 deletion opam
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build: [
[ make "-j%{jobs}%" ]
]
install: [ make "install" ]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/Verdi" ]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/Verdi'" ]
depends: [
"coq" {>= "8.5" & < "8.6~"}
"coq-mathcomp-ssreflect" {>= "1.6"}
Expand Down
8 changes: 6 additions & 2 deletions script/coqproject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ function dep_dirs_lines(){
namespace_var=${namespace_var//-/_}
namespace_var=${namespace_var//./_}
namespace=${!namespace_var:=$2}
LINE="-Q $1/$dep_dir/ $namespace"
if [ $dep_dir = "." ]; then
LINE="-Q $1 $namespace"
else
LINE="-Q $1/$dep_dir $namespace"
fi
echo $LINE >> $COQPROJECT_TMP
done
}
Expand Down Expand Up @@ -66,7 +70,7 @@ for dir in ${DIRS[@]}; do
namespace_var=${namespace_var//-/_}
namespace_var=${namespace_var//./_}
namespace=${!namespace_var:="\"\""}
LINE="-Q $dir/ $namespace"
LINE="-Q $dir $namespace"
echo $LINE >> $COQPROJECT_TMP
done

Expand Down

0 comments on commit 39cbbc1

Please sign in to comment.