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:
138138 rm -f $(DESTDIR )$(MAN1DIR ) /sslscan.1
139139
140140.openssl.is.fresh : opensslpull
141- true
141+ @true
142+
142143opensslpull :
144+ upstream=` git ls-remote https://github.com/openssl/openssl | grep -Eo ' (openssl-3\.0\.[0-9]+)' | sort -V | tail -n 1` ; \
143145 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 \
145149 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 ; \
147151 fi
148152
149153openssl/Makefile : .openssl.is.fresh
You can’t perform that action at this time.
0 commit comments