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 4848 systemctl daemon-reload
4949fi
5050
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
5961
6062# Go to work dir
61- cd ${srcdir}
62- rm -rf ${srcdir} / ${repo}
63+ cd ${srcdir} / ${repo}
64+ ls -A1 | xargs rm -rf
6365
6466# Update code
6567echo " 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+
6870export CC=/usr/bin/clang
6971export CXX=/usr/bin/clang++
7072export CCACHE_DISABLE=1
You can’t perform that action at this time.
0 commit comments