Skip to content

Commit 4abbff9

Browse files
committed
merge_changes_from_dlib : add latest version tag detection logic
1 parent 76e41d3 commit 4abbff9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

merge_changes_from_dlib

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
git subtree pull --prefix dlib https://github.com/davisking/dlib.git master --squash
1+
#!/bin/sh
2+
3+
DLIB_LATEST_TAG=$(git ls-remote --tags https://github.com/davisking/dlib.git | \
4+
awk '/refs\/tags\/v/ {print $2}' | \
5+
sed 's|refs/tags/||' | \
6+
sort -V | \
7+
tail -n 1)
8+
9+
git subtree pull --prefix dlib https://github.com/davisking/dlib.git $DLIB_LATEST_TAG --squash

0 commit comments

Comments
 (0)