From 0da0fd676d67b4b5b8b59d41768884a4735955c9 Mon Sep 17 00:00:00 2001
From: Simon Piette <simon.piette@savoirfairelinux.com>
Date: Thu, 18 Sep 2014 16:16:09 -0400
Subject: [PATCH] build-system: jenkins build script support for 1.4.x

Refs #55550

Change-Id: Ifd7ba05ee9801623563d7c2d6b583a4565c68877
---
 tools/build-system/hudson-sflphone-script.sh | 22 +++++++++++++-------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/tools/build-system/hudson-sflphone-script.sh b/tools/build-system/hudson-sflphone-script.sh
index dab2378951..b430443566 100755
--- a/tools/build-system/hudson-sflphone-script.sh
+++ b/tools/build-system/hudson-sflphone-script.sh
@@ -114,14 +114,20 @@ function launch_functional_test_daemon {
 }
 
 function build_contrib {
-    pushd contrib
-    mkdir -p native
-    pushd native
-    ../bootstrap
-    # list dependencies which will be added
-    make list
-    make
-    popd
+    if [ -d contrib ] ; then
+        pushd contrib
+        mkdir -p native
+        pushd native
+        ../bootstrap
+        # list dependencies which will be added
+        make list
+        make
+        popd
+    else
+        # We're on 1.4.x
+        pushd libs
+        ./compile_pjsip.sh
+    fi
     popd
 }
 
-- 
GitLab