Fixed some problems with SWIG bindings.

This may (but shouldn't) break Linux (but I tested and it still worked on FreeBSD).

The same shell scripts are now used on Xcode and Makefiles, for generating
the SWIG bindings.
Some compatibility fixes were applied, too (python path, bash-isms, etc).

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@163912 91177308-0d34-0410-b5e6-96231b3b80d8
4 files changed