-
Notifications
You must be signed in to change notification settings - Fork 5
/
set-gitmodules.sh
53 lines (48 loc) · 1.18 KB
/
set-gitmodules.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
#echo ========= Setting Git Submodules to specific commits (BEGIN) =========
if [ ".git" ]
then
git submodule update --init --recursive
else
git init
git submodule add https://github.com/microsoft/libHttpClient.git ./external/libHttpClient
if [ $? != 0 ]
then
exit $?
fi
git submodule add https://github.com/Tencent/rapidjson.git ./external/rapidjson
if [ $? != 0 ]
then
exit $?
fi
git submodule add https://github.com/microsoft/DirectXTK12 ./external/DirectXTK12
if [ $? != 0 ]
then
exit $?
fi
fi
pushd "external/rapidjson"
git checkout f54b0e47a08782a6131cc3d60f94d038fa6e0a51
git reset --hard f54b0e47a08782a6131cc3d60f94d038fa6e0a51
if [ $? != 0 ]
then
exit $?
fi
popd
pushd "external/libHttpClient"
git checkout cd6651fdf57c7bfa28dd75bba83894fa2fb43a0f
git reset --hard cd6651fdf57c7bfa28dd75bba83894fa2fb43a0f
if [ $? != 0 ]
then
exit $?
fi
popd
pushd "external/DirectXTK12"
git checkout 99e1d88e49dcdb07bdc2c4122a6b60784f927033
git reset --hard 99e1d88e49dcdb07bdc2c4122a6b60784f927033
if [ $? != 0 ]
then
exit $?
fi
popd
#echo ========= Setting Git Submodules to specific commits (END) =========