Last active
August 29, 2015 14:27
-
-
Save LTGIV/2b557af1901d8af7db89 to your computer and use it in GitHub Desktop.
Cloning latest stable release of OpenCV 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/Itseez/opencv.git --branch "$( \ | |
git ls-remote --tags https://github.com/Itseez/opencv.git | \ | |
sed -e 's/^[[:space:]]*//' | \ | |
grep --perl-regexp --ignore-case --only-matching '(?<=refs/tags/)3\.[0-9][\.0-9]*$' | \ | |
sort --version-sort | \ | |
tail -n 1 \ | |
)" --single-branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment