summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-22 22:10:57 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-22 22:10:57 +0000
commit30123f114aa2b78b0e4164fe1c40c645761dadfc (patch)
treee225879fc83262e3b5ca537c6fd7dde885ff1129 /lldb/scripts/Python
parent0a976141c50f45cc699d5ed308abf6416f9ce651 (diff)
downloadbcm5719-llvm-30123f114aa2b78b0e4164fe1c40c645761dadfc.tar.gz
bcm5719-llvm-30123f114aa2b78b0e4164fe1c40c645761dadfc.zip
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. llvm-svn: 138280
Diffstat (limited to 'lldb/scripts/Python')
-rwxr-xr-xlldb/scripts/Python/build-swig-Python.sh21
1 files changed, 17 insertions, 4 deletions
diff --git a/lldb/scripts/Python/build-swig-Python.sh b/lldb/scripts/Python/build-swig-Python.sh
index c6496488758..1b2897e3149 100755
--- a/lldb/scripts/Python/build-swig-Python.sh
+++ b/lldb/scripts/Python/build-swig-Python.sh
@@ -20,8 +20,8 @@ SWIG=$6
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 @@ fi
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_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_input_file2} is newer than ${swig_output_file}"
+ echo "${swig_python_wrapper} is newer than ${swig_output_file}"
echo "swig file will need to be re-built."
fi
fi
OpenPOWER on IntegriCloud