-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathfix.sh
More file actions
executable file
·28 lines (22 loc) · 870 Bytes
/
fix.sh
File metadata and controls
executable file
·28 lines (22 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# BOOST
git submodule deinit -f 3party/boost
git rm -f 3party/boost
git submodule add https://github.com/boostorg/boost.git thirdparty/boost
git -C thirdparty/boost submodule update --init --recursive --depth 1
# OPENSSL
git submodule deinit -f 3party/openssl
git rm -f 3party/openssl
git submodule add https://github.com/openssl/openssl.git thirdparty/openssl
# sincronizar e atualizar tudo
git submodule sync --recursive
git submodule update --init --recursive
# substituir referências no código/build
git grep -n -- '3party'
git grep -l -- '3party' | xargs sed -i 's#\b3party\b#thirdparty#g'
# limpar e recompilar
scons -c
scons platform=linuxbsd arch=x86_64 target=editor custom_modules="../modules" -j"$(nproc)"
# commit e push
git add -A
git commit -m "chore(submodules): readicionar submódulos em thirdparty/* e remover 3party/*"
git push -u origin HEAD