Moved script to rewrite OPAM repository outside of the .gitlab-ci.yml in ligo repo
This commit is contained in:
parent
d1cc80553b
commit
a6d8291dd2
8
rewrite-local-opam-repository.sh
Executable file
8
rewrite-local-opam-repository.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euET -o pipefail
|
||||||
|
root_dir="$(pwd | sed -e 's/\\/\\\\/' | sed -e 's/&/\\\&/' | sed -e 's/~/\\~/')"
|
||||||
|
cd vendors/ligo-opam-repository
|
||||||
|
git grep -z -l src: | xargs -0 \
|
||||||
|
sed -i -e 's~src: "https://gitlab.com/gabriel.alfour/ligo/-/archive/master/ligo.tar.gz"~src: "git+file://'"$root_dir"'"~' \
|
||||||
|
-e 's~src: "https://gitlab.com/gabriel.alfour/ligo-utils/-/archive/master/ligo-utils.tar.gz"~src: "git+file://'"$root_dir"'/vendors/ligo-utils"~' \
|
||||||
|
-e 's~src: "https://gitlab.com/gabriel.alfour/tezos-modded/-/archive/master/tezos-modded.tar.gz"~src: "git+file://'"$root_dir"'/vendors/tezos-modded"~'
|
Loading…
Reference in New Issue
Block a user