File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,16 @@ uninstall:
138
138
rm -f $(DESTDIR )$(MAN1DIR ) /sslscan.1
139
139
140
140
.openssl.is.fresh : opensslpull
141
- true
141
+ @true
142
+
142
143
opensslpull :
144
+ upstream=` git ls-remote https://github.com/openssl/openssl | grep -Eo ' (openssl-3\.0\.[0-9]+)' | sort -V | tail -n 1` ; \
143
145
if [ -d openssl -a -d openssl/.git ]; then \
144
- cd ./openssl && git checkout ` git ls-remote https://github.com/openssl/openssl | grep -Eo ' (openssl-3\.0\.[0-9]+)' | sort --version-sort | tail -n 1` && git pull | grep -q " Already up to date." && [ -e ../.openssl.is.fresh ] || touch ../.openssl.is.fresh ; \
146
+ if [ " $$ upstream" != " ` cd ./openssl && git describe --exact-match --tags` " ]; then \
147
+ cd ./openssl && git fetch --depth 1 origin refs/tags/$$ upstream:refs/tags/$$ upstream && git checkout $$ upstream && touch ../.openssl.is.fresh ; \
148
+ fi \
145
149
else \
146
- git clone --depth 1 -b ` git ls-remote https://github.com/openssl/openssl | grep -Eo ' (openssl-3\.0\.[0-9]+) ' | sort -V | tail -n 1 ` https://github.com/openssl/openssl ./openssl && cd ./openssl && touch ../.openssl.is.fresh ; \
150
+ git clone --depth 1 -b $$ upstream https://github.com/openssl/openssl ./openssl && cd ./openssl && touch ../.openssl.is.fresh ; \
147
151
fi
148
152
149
153
openssl/Makefile : .openssl.is.fresh
You can’t perform that action at this time.
0 commit comments