Skip to content

Commit

Permalink
Fix opam files and add make-opam-files script
Browse files Browse the repository at this point in the history
  • Loading branch information
mattam82 committed Jul 1, 2022
1 parent b1ad2a0 commit d073f87
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion coq-metacoq-erasure.opam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ opam-version: "2.0"
version: "8.15.dev"
maintainer: "[email protected]"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.11"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.16"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <[email protected]>"
"Simon Boulier <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion coq-metacoq-pcuic.opam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ opam-version: "2.0"
version: "8.15.dev"
maintainer: "[email protected]"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.11"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.16"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <[email protected]>"
"Simon Boulier <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion coq-metacoq-safechecker.opam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ opam-version: "2.0"
version: "8.15.dev"
maintainer: "[email protected]"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.11"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.16"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <[email protected]>"
"Simon Boulier <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion coq-metacoq-template.opam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ opam-version: "2.0"
version: "8.15.dev"
maintainer: "[email protected]"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#master"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.16"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <[email protected]>"
"Simon Boulier <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion coq-metacoq-translations.opam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ opam-version: "2.0"
version: "8.15.dev"
maintainer: "[email protected]"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.11"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.16"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Simon Boulier <[email protected]>"
"Cyril Cohen <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion coq-metacoq.opam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ opam-version: "2.0"
version: "8.15.dev"
maintainer: "[email protected]"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.11"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.16"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <[email protected]>"
"Simon Boulier <[email protected]>"
Expand Down
23 changes: 23 additions & 0 deletions make-opam-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#/usr/bin/env bash
echo "Target directory: " $1
echo "Target version: " $2
echo "Releases package: " $3

wget $3
archive=`basename $3`
hash=`shasum -a 512 $archive | cut -f 1 -d " "`

echo "Shasum = " $hash

for f in *.opam;
do
opamf=${f/.opam/};
target=$1/$opamf/$opamf.$2/opam;
echo $opamf;
mkdir $1/$opamf/$opamf.$2
gsed -e "/^version:.*/d" $f > $target
echo url { >> $target
echo " src:" \"$3\" >> $target
echo " checksum:" \"sha512=$hash\" >> $target
echo } >> $target
done

0 comments on commit d073f87

Please sign in to comment.