diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-08-26 20:04:17 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-08-26 20:04:17 +0000 |
| commit | 5fca8ca8cdc81b2d7593dc02e8c9060ad4b3f621 (patch) | |
| tree | cbb3d23ad6d84c476befd78435bc087eda969720 /lldb/scripts/Python/build-swig-Python.sh | |
| parent | 4fcc97f2f9ade5a6bea31ac2145f16a211c4b7bc (diff) | |
| download | bcm5719-llvm-5fca8ca8cdc81b2d7593dc02e8c9060ad4b3f621.tar.gz bcm5719-llvm-5fca8ca8cdc81b2d7593dc02e8c9060ad4b3f621.zip | |
o Added a test case for array_types which uses the Python APIs from lldb.py,
with the only exception of launching the process from SBTarget which is under
investigation.
o build-swig-Python.sh should also checks the timestamp of ${swig_input_file}
for update eligibility. Also, once an update is in order, there's no need
to check the remaining header files for timestamps.
o Coaches swig to treat StopReason as an int type, instead of a C++ class.
llvm-svn: 112210
Diffstat (limited to 'lldb/scripts/Python/build-swig-Python.sh')
| -rwxr-xr-x | lldb/scripts/Python/build-swig-Python.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lldb/scripts/Python/build-swig-Python.sh b/lldb/scripts/Python/build-swig-Python.sh index d2ed2098a5b..de26eccd80e 100755 --- a/lldb/scripts/Python/build-swig-Python.sh +++ b/lldb/scripts/Python/build-swig-Python.sh @@ -67,7 +67,7 @@ fi NeedToUpdate=0 -if [ ! -f $swig_output_file ] +if [ ! -f ${swig_output_file} ] then NeedToUpdate=1 if [ $Debug == 1 ] @@ -80,7 +80,7 @@ if [ $NeedToUpdate == 0 ] then for hdrfile in ${HEADER_FILES} do - if [ $hdrfile -nt $swig_output_file ] + if [ $hdrfile -nt ${swig_output_file} ] then NeedToUpdate=1 if [ $Debug == 1 ] @@ -88,10 +88,24 @@ then echo "${hdrfile} is newer than ${swig_output_file}" echo "swig file will need to be re-built." fi + break fi done fi +if [ $NeedToUpdate == 0 ] +then + if [ ${swig_input_file} -nt ${swig_output_file} ] + then + NeedToUpdate=1 + if [ $Debug == 1 ] + then + echo "${swig_input_file} is newer than ${swig_output_file}" + echo "swig file will need to be re-built." + fi + fi +fi + os_name=`uname -s` python_version=`/usr/bin/python --version 2>&1 | sed -e 's,Python ,,' -e 's,[.][0-9],,2' -e 's,[a-z][a-z][0-9],,'` |

