mirror of https://code.videolan.org/videolan/vlc
Merge branch 'fix-version-check-tool' into 'master'
tools: bootstrap: fix version checking algorithm See merge request videolan/vlc!3471
This commit is contained in:
commit
125bf190e3
|
@ -28,7 +28,7 @@ check_version() {
|
|||
needminor=`echo $3|cut -d. -f2`
|
||||
needmicro=`echo $3|cut -d. -f3`
|
||||
[ -z "$needmicro" ] && needmicro=0
|
||||
if [ "$needmajor" -ne "$gotmajor" ] ||
|
||||
if [ "$needmajor" -gt "$gotmajor" ] ||
|
||||
[ "$needmajor" -eq "$gotmajor" -a "$needminor" -gt "$gotminor" ] ||
|
||||
[ "$needmajor" -eq "$gotmajor" -a "$needminor" -eq "$gotminor" -a "$needmicro" -gt "$gotmicro" ];
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue