File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change 48
48
systemctl daemon-reload
49
49
fi
50
50
51
- # compile openssl_3
52
- rm -rf ${bindir} /openssl_3
53
- git clone https://github.com/openssl/openssl ${bindir} /openssl_3
54
- cd ${bindir} /openssl_3
55
- git checkout openssl-3.1.4
56
- ./config
57
- make build_libs -j$( nproc)
58
- opensslPath=` pwd`
51
+ if [ ! -d " ${bindir} /openssl_3" ]; then
52
+ git clone https://github.com/openssl/openssl ${bindir} /openssl_3
53
+ cd ${bindir} /openssl_3
54
+ git checkout openssl-3.1.4
55
+ ./config
56
+ make build_libs -j$( nproc)
57
+ opensslPath=` pwd`
58
+ else
59
+ opensslPath=${bindir} /openssl_3
60
+ fi
59
61
60
62
# Go to work dir
61
- cd ${srcdir}
62
- rm -rf ${srcdir} / ${repo}
63
+ cd ${srcdir} / ${repo}
64
+ ls -A1 | xargs rm -rf
63
65
64
66
# Update code
65
67
echo " https://github.com/${author} /${repo} .git -> ${branch} "
66
- git clone --branch ${branch} --recursive https://github.com/${author} /${repo} .git
67
- cd ${repo}
68
+ git clone --branch ${branch} --recursive https://github.com/${author} /${repo} .git .
69
+
68
70
export CC=/usr/bin/clang
69
71
export CXX=/usr/bin/clang++
70
72
export CCACHE_DISABLE=1
You can’t perform that action at this time.
0 commit comments