2019-05-14 20:04:46 +04:00
|
|
|
#!/bin/bash
|
|
|
|
set -euET -o pipefail
|
2019-05-15 16:01:51 +04:00
|
|
|
main(){
|
|
|
|
root_dir="$(pwd | sed -e 's/\\/\\\\/' | sed -e 's/&/\\\&/' | sed -e 's/~/\\~/')"
|
2019-05-15 18:44:45 +04:00
|
|
|
rm -fr vendors/ligo-opam-repository-local
|
|
|
|
cp -a vendors/ligo-opam-repository vendors/ligo-opam-repository-local
|
|
|
|
cd vendors/ligo-opam-repository-local
|
2019-05-15 16:01:51 +04:00
|
|
|
git grep -z -l src: | grep -z 'opam$' | xargs -0 \
|
2019-05-24 13:28:52 +04:00
|
|
|
sed -i -e 's~src: *"https://gitlab.com/ligolang/ligo/-/archive/master/ligo.tar.gz"~src: "file://'"$root_dir"'"~' \
|
|
|
|
-e 's~src: *"https://gitlab.com/ligolang/ligo-utils/-/archive/master/ligo-utils.tar.gz"~src: "file://'"$root_dir"'/vendors/ligo-utils"~' \
|
|
|
|
-e 's~src: *"https://gitlab.com/ligolang/tezos-modded/-/archive/master/tezos-modded.tar.gz"~src: "file://'"$root_dir"'/vendors/tezos-modded"~'
|
2019-05-15 16:01:51 +04:00
|
|
|
}
|
|
|
|
if main; then exit 0; else exit $?; fi
|