1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/external/update-deps.sh

26 lines
1.1 KiB
Bash
Raw Normal View History

2019-01-17 09:33:18 -05:00
#!/bin/bash
pushd $GOPATH/src/v2ray.com/core/external
rsync -rv "$GOPATH/src/github.com/lucas-clemente/quic-go/" "./github.com/lucas-clemente/quic-go/"
rm -rf ./github.com/lucas-clemente/quic-go/\.*
rm -rf ./github.com/lucas-clemente/quic-go/benchmark
rm -rf ./github.com/lucas-clemente/quic-go/docs
rm -rf ./github.com/lucas-clemente/quic-go/example
rm -rf ./github.com/lucas-clemente/quic-go/h2quic
rm -rf ./github.com/lucas-clemente/quic-go/integrationtests
rm -rf ./github.com/lucas-clemente/quic-go/internal/mocks
rm ./github.com/lucas-clemente/quic-go/vendor/vendor.json
rsync -rv "./github.com/lucas-clemente/quic-go/vendor/github.com/cheekybits/" "./github.com/cheekybits/"
rsync -rv "./github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/" "./github.com/cloudflare/"
rsync -rv "./github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/" "./github.com/marten-seemann/"
rm -rf "./github.com/lucas-clemente/quic-go/vendor/"
2019-02-16 18:58:02 -05:00
2019-01-17 09:33:18 -05:00
find . -name "*_test.go" -delete
2019-01-17 09:44:22 -05:00
find . -name "*.yml" -delete
2019-01-17 10:39:39 -05:00
find . -name "*.go" -type f -print0 | LC_ALL=C xargs -0 sed -i '' 's#\"github\.com#\"v2ray\.com/core/external/github\.com#g'
2019-01-17 09:33:18 -05:00
popd