[vlc-commits] tools: bootstrap: Fix nasm version check

Hugo Beauzée-Luyssen git at videolan.org
Mon Mar 26 13:20:43 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Mar 26 13:19:38 2018 +0200| [6839a212a1032c33dbfdaafe1b69bc795aa374f4] | committer: Hugo Beauzée-Luyssen

tools: bootstrap: Fix nasm version check

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6839a212a1032c33dbfdaafe1b69bc795aa374f4
---

 extras/tools/bootstrap | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index f416945b90..8467096f27 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -63,6 +63,19 @@ then
 fi
 }
 
+check_nasm() {
+if ! nasm -v >/dev/null 2>&1
+then
+    echo "nasm not found"
+    NEEDED="$NEEDED .nasm"
+else
+    # found, need to check version ?
+    [ -z "$1" ] && return # no
+    gotver=`nasm -v | cut -d ' ' -f 3`
+    check_version nasm $gotver $1
+fi
+}
+
 check() {
 if ! $1 --version >/dev/null 2>&1 && ! $1 -version >/dev/null 2>&1
 then
@@ -91,7 +104,7 @@ check ant
 check xz
 check bison 3.0.0
 check flex
-check nasm 2.13.01
+check_nasm 2.13.01
 
 [ -n "$NEEDED" ] && mkdir -p build/ && echo "To-be-built packages: `echo $NEEDED | sed 's/\.//g'`"
 



More information about the vlc-commits mailing list