Check the timesatmps of includees python-extensions.swig and python-wrapper.swig and force
a re-SWIG if newer than the SWIG-generated LLDBWrapPython.cpp file.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@138280 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/build-swig-Python.sh b/scripts/Python/build-swig-Python.sh
index c649648..1b2897e 100755
--- a/scripts/Python/build-swig-Python.sh
+++ b/scripts/Python/build-swig-Python.sh
@@ -20,8 +20,8 @@
 
 swig_output_file=${SRC_ROOT}/source/LLDBWrapPython.cpp
 swig_input_file=${SRC_ROOT}/scripts/lldb.swig
-swig_input_file2=${SRC_ROOT}/scripts/Python/python-extensions.swig
-
+swig_python_extensions=${SRC_ROOT}/scripts/Python/python-extensions.swig
+swig_python_wrapper=${SRC_ROOT}/scripts/Python/python-wrapper.swig
 
 if [ -n "$debug_flag" -a "$debug_flag" == "-debug" ]
 then
@@ -123,12 +123,25 @@
 
 if [ $NeedToUpdate == 0 ]
 then
-    if [ ${swig_input_file2} -nt ${swig_output_file} ]
+    if [ ${swig_python_extensions} -nt ${swig_output_file} ]
     then
         NeedToUpdate=1
         if [ $Debug == 1 ]
         then
-            echo "${swig_input_file2} is newer than ${swig_output_file}"
+            echo "${swig_python_extensions} is newer than ${swig_output_file}"
+            echo "swig file will need to be re-built."
+        fi
+    fi
+fi
+
+if [ $NeedToUpdate == 0 ]
+then
+    if [ ${swig_python_wrapper} -nt ${swig_output_file} ]
+    then
+        NeedToUpdate=1
+        if [ $Debug == 1 ]
+        then
+            echo "${swig_python_wrapper} is newer than ${swig_output_file}"
             echo "swig file will need to be re-built."
         fi
     fi