Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | # finish-swig-Python.sh |
| 4 | # |
| 5 | # For the Python script interpreter (external to liblldb) to be able to import |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 6 | # and use the lldb module, there must be two files, lldb.py and _lldb.so, that |
| 7 | # it can find. lldb.py is generated by SWIG at the same time it generates the |
| 8 | # C++ file. _lldb.so is actually a symlink file that points to the |
| 9 | # LLDB shared library/framework. |
| 10 | # |
| 11 | # The Python script interpreter needs to be able to automatically find |
| 12 | # these two files. On Darwin systems it searches in the LLDB.framework, as |
| 13 | # well as in all the normal Python search paths. On non-Darwin systems |
| 14 | # these files will need to be put someplace where Python will find them. |
| 15 | # |
| 16 | # This shell script creates the _lldb.so symlink in the appropriate place, |
| 17 | # and copies the lldb.py (and embedded_interpreter.py) file to the correct |
| 18 | # directory. |
| 19 | # |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 20 | |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 21 | # SRC_ROOT is the root of the lldb source tree. |
| 22 | # TARGET_DIR is where the lldb framework/shared library gets put. |
| 23 | # CONFIG_BUILD_DIR is where the build-swig-Python-LLDB.sh shell script |
| 24 | # put the lldb.py file it was generated from running SWIG. |
| 25 | # PYTHON_INSTALL_DIR is where non-Darwin systems want to put the .py and .so |
| 26 | # files so that Python can find them automatically. |
| 27 | # debug_flag (optional) determines whether or not this script outputs |
| 28 | # additional information when running. |
| 29 | |
| 30 | SRC_ROOT=$1 |
| 31 | TARGET_DIR=$2 |
| 32 | CONFIG_BUILD_DIR=$3 |
| 33 | PYTHON_INSTALL_DIR=$4 |
| 34 | debug_flag=$5 |
| 35 | |
Greg Clayton | 3e4238d | 2011-11-04 03:34:56 +0000 | [diff] [blame] | 36 | # Make sure SDKROOT is not set, since if it is this is an iOS build where python |
| 37 | # is disabled |
| 38 | if [ "x$SDKROOT" = "x" ] ; then |
| 39 | |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 40 | if [ -n "$debug_flag" -a "$debug_flag" == "-debug" ] |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 41 | then |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 42 | Debug=1 |
| 43 | else |
| 44 | Debug=0 |
| 45 | fi |
| 46 | |
| 47 | OS_NAME=`uname -s` |
| 48 | 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],,'` |
| 49 | |
| 50 | |
| 51 | if [ $Debug == 1 ] |
| 52 | then |
| 53 | echo "The current OS is $OS_NAME" |
| 54 | echo "The Python version is $PYTHON_VERSION" |
| 55 | fi |
| 56 | |
| 57 | # |
| 58 | # Determine where to put the files. |
| 59 | |
| 60 | if [ ${OS_NAME} == "Darwin" ] |
| 61 | then |
| 62 | # We are on a Darwin system, so all the lldb Python files can go |
| 63 | # into the LLDB.framework/Resources/Python subdirectory. |
| 64 | |
| 65 | if [ ! -d "${TARGET_DIR}/LLDB.framework" ] |
| 66 | then |
| 67 | echo "Error: Unable to find LLDB.framework" >&2 |
| 68 | exit 1 |
| 69 | else |
| 70 | if [ $Debug == 1 ] |
| 71 | then |
| 72 | echo "Found ${TARGET_DIR}/LLDB.framework." |
| 73 | fi |
| 74 | fi |
| 75 | |
| 76 | # Make the Python directory in the framework if it doesn't already exist |
| 77 | |
| 78 | framework_python_dir="${TARGET_DIR}/LLDB.framework/Resources/Python" |
| 79 | else |
| 80 | # We are on a non-Darwin system, so use the PYTHON_INSTALL_DIR argument, |
| 81 | # and append the python version directory to the end of it. Depending on |
| 82 | # the system other stuff may need to be put here as well. |
| 83 | |
| 84 | framework_python_dir="${PYTHON_INSTALL_DIR}/python${PYTHON_VERSION}" |
| 85 | fi |
| 86 | |
| 87 | # |
| 88 | # Look for the directory in which to put the Python files; if it does not |
| 89 | # already exist, attempt to make it. |
| 90 | # |
| 91 | |
| 92 | if [ $Debug == 1 ] |
| 93 | then |
| 94 | echo "Python files will be put in ${framework_python_dir}" |
| 95 | fi |
| 96 | |
| 97 | if [ ! -d "${framework_python_dir}" ] |
| 98 | then |
| 99 | if [ $Debug == 1 ] |
| 100 | then |
| 101 | echo "Making directory ${framework_python_dir}" |
| 102 | fi |
| 103 | mkdir -p "${framework_python_dir}" |
| 104 | else |
| 105 | if [ $Debug == 1 ] |
| 106 | then |
| 107 | echo "${framework_python_dir} already exists." |
| 108 | fi |
| 109 | fi |
| 110 | |
| 111 | if [ ! -d "${framework_python_dir}" ] |
| 112 | then |
| 113 | echo "Error: Unable to find or create ${framework_python_dir}" >&2 |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 114 | exit 1 |
| 115 | fi |
| 116 | |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 117 | # Make the symlink that the script bridge for Python will need in the |
| 118 | # Python framework directory |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 119 | |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 120 | if [ ! -L "${framework_python_dir}/_lldb.so" ] |
| 121 | then |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 122 | if [ $Debug == 1 ] |
| 123 | then |
| 124 | echo "Creating symlink for _lldb.so" |
| 125 | fi |
| 126 | if [ ${OS_NAME} == "Darwin" ] |
| 127 | then |
| 128 | cd "${framework_python_dir}" |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 129 | ln -s "../../LLDB" _lldb.so |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 130 | else |
| 131 | cd "${TARGET_DIR}" |
| 132 | ln -s "./LLDB" _lldb.so |
| 133 | fi |
| 134 | else |
| 135 | if [ $Debug == 1 ] |
| 136 | then |
| 137 | echo "${framework_python_dir}/_lldb.so already exists." |
| 138 | fi |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 139 | fi |
| 140 | |
| 141 | # Copy the python module (lldb.py) that was generated by SWIG |
| 142 | # over to the framework Python directory |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 143 | if [ -f "${CONFIG_BUILD_DIR}/lldb.py" ] |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 144 | then |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 145 | if [ $Debug == 1 ] |
| 146 | then |
| 147 | echo "Copying lldb.py to ${framework_python_dir}" |
| 148 | fi |
| 149 | cp "${CONFIG_BUILD_DIR}/lldb.py" "${framework_python_dir}" |
| 150 | else |
| 151 | if [ $Debug == 1 ] |
| 152 | then |
| 153 | echo "Unable to find ${CONFIG_BUILD_DIR}/lldb.py" |
| 154 | fi |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 155 | fi |
| 156 | |
| 157 | # Copy the embedded interpreter script over to the framework Python directory |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 158 | if [ -f "${SRC_ROOT}/source/Interpreter/embedded_interpreter.py" ] |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 159 | then |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 160 | if [ $Debug == 1 ] |
| 161 | then |
| 162 | echo "Copying embedded_interpreter.py to ${framework_python_dir}" |
| 163 | fi |
| 164 | cp "${SRC_ROOT}/source/Interpreter/embedded_interpreter.py" "${framework_python_dir}" |
| 165 | else |
| 166 | if [ $Debug == 1 ] |
| 167 | then |
| 168 | echo "Unable to find ${SRC_ROOT}/source/Interpreter/embedded_interpreter.py" |
| 169 | fi |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 170 | fi |
| 171 | |
Enrico Granata | f501c59 | 2011-08-17 22:13:59 +0000 | [diff] [blame] | 172 | # Copy the C++ STL formatters over to the framework Python directory |
| 173 | if [ -f "${SRC_ROOT}/examples/synthetic/gnu_libstdcpp.py" ] |
Enrico Granata | 074e3b6 | 2011-08-17 19:07:52 +0000 | [diff] [blame] | 174 | then |
| 175 | if [ $Debug == 1 ] |
| 176 | then |
Enrico Granata | f501c59 | 2011-08-17 22:13:59 +0000 | [diff] [blame] | 177 | echo "Copying gnu_libstdcpp.py to ${framework_python_dir}" |
Enrico Granata | 074e3b6 | 2011-08-17 19:07:52 +0000 | [diff] [blame] | 178 | fi |
Enrico Granata | f501c59 | 2011-08-17 22:13:59 +0000 | [diff] [blame] | 179 | cp "${SRC_ROOT}/examples/synthetic/gnu_libstdcpp.py" "${framework_python_dir}" |
Enrico Granata | 074e3b6 | 2011-08-17 19:07:52 +0000 | [diff] [blame] | 180 | else |
| 181 | if [ $Debug == 1 ] |
| 182 | then |
Enrico Granata | f501c59 | 2011-08-17 22:13:59 +0000 | [diff] [blame] | 183 | echo "Unable to find ${SRC_ROOT}/examples/synthetic/gnu_libstdcpp.py" |
Enrico Granata | 074e3b6 | 2011-08-17 19:07:52 +0000 | [diff] [blame] | 184 | fi |
| 185 | fi |
| 186 | |
Enrico Granata | 66205ce | 2012-03-12 19:47:17 +0000 | [diff] [blame^] | 187 | if [ -f "${SRC_ROOT}/examples/synthetic/libcxx.py" ] |
| 188 | then |
| 189 | if [ $Debug == 1 ] |
| 190 | then |
| 191 | echo "Copying libcxx.py to ${framework_python_dir}" |
| 192 | fi |
| 193 | cp "${SRC_ROOT}/examples/synthetic/libcxx.py" "${framework_python_dir}" |
| 194 | else |
| 195 | if [ $Debug == 1 ] |
| 196 | then |
| 197 | echo "Unable to find ${SRC_ROOT}/examples/synthetic/libcxx.py" |
| 198 | fi |
| 199 | fi |
| 200 | |
Enrico Granata | b8dc733 | 2012-01-31 17:01:51 +0000 | [diff] [blame] | 201 | # Copy the ObjC formatters over to the framework Python directory |
Enrico Granata | 8f84cfb | 2012-02-23 23:10:03 +0000 | [diff] [blame] | 202 | if [ -f "${SRC_ROOT}/examples/summaries/objc.py" ] |
Enrico Granata | b8dc733 | 2012-01-31 17:01:51 +0000 | [diff] [blame] | 203 | then |
| 204 | if [ $Debug == 1 ] |
| 205 | then |
| 206 | echo "Copying objc.py to ${framework_python_dir}" |
| 207 | fi |
| 208 | cp "${SRC_ROOT}/examples/summaries/objc.py" "${framework_python_dir}" |
| 209 | else |
| 210 | if [ $Debug == 1 ] |
| 211 | then |
| 212 | echo "Unable to find ${SRC_ROOT}/examples/summaries/objc.py" |
| 213 | fi |
| 214 | fi |
| 215 | |
Enrico Granata | 8f84cfb | 2012-02-23 23:10:03 +0000 | [diff] [blame] | 216 | # Copy the Cocoa formatters over to the framework Python directory |
| 217 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/CFArray.py" ] |
| 218 | then |
| 219 | if [ $Debug == 1 ] |
| 220 | then |
| 221 | echo "Copying CFArray.py to ${framework_python_dir}" |
| 222 | fi |
| 223 | cp "${SRC_ROOT}/examples/summaries/cocoa/CFArray.py" "${framework_python_dir}" |
| 224 | else |
| 225 | if [ $Debug == 1 ] |
| 226 | then |
| 227 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/CFArray.py" |
| 228 | fi |
| 229 | fi |
| 230 | |
| 231 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/CFDictionary.py" ] |
| 232 | then |
| 233 | if [ $Debug == 1 ] |
| 234 | then |
| 235 | echo "Copying CFDictionary.py to ${framework_python_dir}" |
| 236 | fi |
| 237 | cp "${SRC_ROOT}/examples/summaries/cocoa/CFDictionary.py" "${framework_python_dir}" |
| 238 | else |
| 239 | if [ $Debug == 1 ] |
| 240 | then |
| 241 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/CFDictionary.py" |
| 242 | fi |
| 243 | fi |
| 244 | |
| 245 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/CFString.py" ] |
| 246 | then |
| 247 | if [ $Debug == 1 ] |
| 248 | then |
| 249 | echo "Copying CFString.py to ${framework_python_dir}" |
| 250 | fi |
| 251 | cp "${SRC_ROOT}/examples/summaries/cocoa/CFString.py" "${framework_python_dir}" |
| 252 | else |
| 253 | if [ $Debug == 1 ] |
| 254 | then |
| 255 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/CFString.py" |
| 256 | fi |
| 257 | fi |
| 258 | |
| 259 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSData.py" ] |
| 260 | then |
| 261 | if [ $Debug == 1 ] |
| 262 | then |
| 263 | echo "Copying NSData.py to ${framework_python_dir}" |
| 264 | fi |
| 265 | cp "${SRC_ROOT}/examples/summaries/cocoa/NSData.py" "${framework_python_dir}" |
| 266 | else |
| 267 | if [ $Debug == 1 ] |
| 268 | then |
| 269 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSData.py" |
| 270 | fi |
| 271 | fi |
| 272 | |
| 273 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSMachPort.py" ] |
| 274 | then |
| 275 | if [ $Debug == 1 ] |
| 276 | then |
| 277 | echo "Copying NSMachPort.py to ${framework_python_dir}" |
| 278 | fi |
| 279 | cp "${SRC_ROOT}/examples/summaries/cocoa/NSMachPort.py" "${framework_python_dir}" |
| 280 | else |
| 281 | if [ $Debug == 1 ] |
| 282 | then |
| 283 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSMachPort.py" |
| 284 | fi |
| 285 | fi |
| 286 | |
| 287 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSSet.py" ] |
| 288 | then |
| 289 | if [ $Debug == 1 ] |
| 290 | then |
| 291 | echo "Copying NSSet.py to ${framework_python_dir}" |
| 292 | fi |
| 293 | cp "${SRC_ROOT}/examples/summaries/cocoa/NSSet.py" "${framework_python_dir}" |
| 294 | else |
| 295 | if [ $Debug == 1 ] |
| 296 | then |
| 297 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSSet.py" |
| 298 | fi |
| 299 | fi |
| 300 | |
| 301 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSNotification.py" ] |
| 302 | then |
| 303 | if [ $Debug == 1 ] |
| 304 | then |
| 305 | echo "Copying NSNotification.py to ${framework_python_dir}" |
| 306 | fi |
| 307 | cp "${SRC_ROOT}/examples/summaries/cocoa/NSNotification.py" "${framework_python_dir}" |
| 308 | else |
| 309 | if [ $Debug == 1 ] |
| 310 | then |
| 311 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSNotification.py" |
| 312 | fi |
| 313 | fi |
| 314 | |
| 315 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSException.py" ] |
| 316 | then |
| 317 | if [ $Debug == 1 ] |
| 318 | then |
| 319 | echo "Copying NSException.py to ${framework_python_dir}" |
| 320 | fi |
| 321 | cp "${SRC_ROOT}/examples/summaries/cocoa/NSException.py" "${framework_python_dir}" |
| 322 | else |
| 323 | if [ $Debug == 1 ] |
| 324 | then |
| 325 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSException.py" |
| 326 | fi |
| 327 | fi |
| 328 | |
| 329 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/CFBag.py" ] |
| 330 | then |
| 331 | if [ $Debug == 1 ] |
| 332 | then |
| 333 | echo "Copying CFBag.py to ${framework_python_dir}" |
| 334 | fi |
| 335 | cp "${SRC_ROOT}/examples/summaries/cocoa/CFBag.py" "${framework_python_dir}" |
| 336 | else |
| 337 | if [ $Debug == 1 ] |
| 338 | then |
| 339 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/CFBag.py" |
| 340 | fi |
| 341 | fi |
| 342 | |
| 343 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/CFBinaryHeap.py" ] |
| 344 | then |
| 345 | if [ $Debug == 1 ] |
| 346 | then |
| 347 | echo "Copying CFBinaryHeap.py to ${framework_python_dir}" |
| 348 | fi |
| 349 | cp "${SRC_ROOT}/examples/summaries/cocoa/CFBinaryHeap.py" "${framework_python_dir}" |
| 350 | else |
| 351 | if [ $Debug == 1 ] |
| 352 | then |
| 353 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/CFBinaryHeap.py" |
| 354 | fi |
| 355 | fi |
| 356 | |
| 357 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSURL.py" ] |
| 358 | then |
| 359 | if [ $Debug == 1 ] |
| 360 | then |
| 361 | echo "Copying NSURL.py to ${framework_python_dir}" |
| 362 | fi |
| 363 | cp "${SRC_ROOT}/examples/summaries/cocoa/NSURL.py" "${framework_python_dir}" |
| 364 | else |
| 365 | if [ $Debug == 1 ] |
| 366 | then |
| 367 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSURL.py" |
| 368 | fi |
| 369 | fi |
| 370 | |
| 371 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSBundle.py" ] |
| 372 | then |
| 373 | if [ $Debug == 1 ] |
| 374 | then |
| 375 | echo "Copying NSBundle.py to ${framework_python_dir}" |
| 376 | fi |
| 377 | cp "${SRC_ROOT}/examples/summaries/cocoa/NSBundle.py" "${framework_python_dir}" |
| 378 | else |
| 379 | if [ $Debug == 1 ] |
| 380 | then |
| 381 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSBundle.py" |
| 382 | fi |
| 383 | fi |
| 384 | |
| 385 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSNumber.py" ] |
| 386 | then |
| 387 | if [ $Debug == 1 ] |
| 388 | then |
| 389 | echo "Copying NSNumber.py to ${framework_python_dir}" |
| 390 | fi |
| 391 | cp "${SRC_ROOT}/examples/summaries/cocoa/NSNumber.py" "${framework_python_dir}" |
| 392 | else |
| 393 | if [ $Debug == 1 ] |
| 394 | then |
| 395 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSNumber.py" |
| 396 | fi |
| 397 | fi |
| 398 | |
Enrico Granata | 1328b14 | 2012-02-29 03:28:49 +0000 | [diff] [blame] | 399 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSDate.py" ] |
| 400 | then |
| 401 | if [ $Debug == 1 ] |
| 402 | then |
| 403 | echo "Copying NSDate.py to ${framework_python_dir}" |
| 404 | fi |
| 405 | cp "${SRC_ROOT}/examples/summaries/cocoa/NSDate.py" "${framework_python_dir}" |
| 406 | else |
| 407 | if [ $Debug == 1 ] |
| 408 | then |
| 409 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSDate.py" |
| 410 | fi |
| 411 | fi |
| 412 | |
Enrico Granata | 83410e5 | 2012-03-01 19:32:33 +0000 | [diff] [blame] | 413 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSIndexSet.py" ] |
| 414 | then |
| 415 | if [ $Debug == 1 ] |
| 416 | then |
| 417 | echo "Copying NSIndexSet.py to ${framework_python_dir}" |
| 418 | fi |
| 419 | cp "${SRC_ROOT}/examples/summaries/cocoa/NSIndexSet.py" "${framework_python_dir}" |
| 420 | else |
| 421 | if [ $Debug == 1 ] |
| 422 | then |
| 423 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSIndexSet.py" |
| 424 | fi |
| 425 | fi |
| 426 | |
Enrico Granata | de3b25b | 2012-03-03 00:45:57 +0000 | [diff] [blame] | 427 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/CFBitVector.py" ] |
| 428 | then |
| 429 | if [ $Debug == 1 ] |
| 430 | then |
| 431 | echo "Copying CFBitVector.py to ${framework_python_dir}" |
| 432 | fi |
| 433 | cp "${SRC_ROOT}/examples/summaries/cocoa/CFBitVector.py" "${framework_python_dir}" |
| 434 | else |
| 435 | if [ $Debug == 1 ] |
| 436 | then |
| 437 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/CFBitVector.py" |
| 438 | fi |
| 439 | fi |
| 440 | |
Enrico Granata | 86fcb16 | 2012-03-02 00:55:53 +0000 | [diff] [blame] | 441 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/Selector.py" ] |
| 442 | then |
| 443 | if [ $Debug == 1 ] |
| 444 | then |
| 445 | echo "Copying Selector.py to ${framework_python_dir}" |
| 446 | fi |
| 447 | cp "${SRC_ROOT}/examples/summaries/cocoa/Selector.py" "${framework_python_dir}" |
| 448 | else |
| 449 | if [ $Debug == 1 ] |
| 450 | then |
| 451 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/Selector.py" |
| 452 | fi |
| 453 | fi |
| 454 | |
Enrico Granata | 8f84cfb | 2012-02-23 23:10:03 +0000 | [diff] [blame] | 455 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/cache.py" ] |
| 456 | then |
| 457 | if [ $Debug == 1 ] |
| 458 | then |
| 459 | echo "Copying cache.py to ${framework_python_dir}" |
| 460 | fi |
| 461 | cp "${SRC_ROOT}/examples/summaries/cocoa/cache.py" "${framework_python_dir}" |
| 462 | else |
| 463 | if [ $Debug == 1 ] |
| 464 | then |
| 465 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/cache.py" |
| 466 | fi |
| 467 | fi |
| 468 | |
| 469 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/metrics.py" ] |
| 470 | then |
| 471 | if [ $Debug == 1 ] |
| 472 | then |
| 473 | echo "Copying metrics.py to ${framework_python_dir}" |
| 474 | fi |
| 475 | cp "${SRC_ROOT}/examples/summaries/cocoa/metrics.py" "${framework_python_dir}" |
| 476 | else |
| 477 | if [ $Debug == 1 ] |
| 478 | then |
| 479 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/metrics.py" |
| 480 | fi |
| 481 | fi |
| 482 | |
Enrico Granata | fd96c04 | 2012-03-05 20:05:24 +0000 | [diff] [blame] | 483 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/attrib_fromdict.py" ] |
| 484 | then |
| 485 | if [ $Debug == 1 ] |
| 486 | then |
| 487 | echo "Copying attrib_fromdict.py to ${framework_python_dir}" |
| 488 | fi |
| 489 | cp "${SRC_ROOT}/examples/summaries/cocoa/attrib_fromdict.py" "${framework_python_dir}" |
| 490 | else |
| 491 | if [ $Debug == 1 ] |
| 492 | then |
| 493 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/attrib_fromdict.py" |
| 494 | fi |
| 495 | fi |
| 496 | |
Enrico Granata | 8f84cfb | 2012-02-23 23:10:03 +0000 | [diff] [blame] | 497 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/objc_lldb.py" ] |
| 498 | then |
| 499 | if [ $Debug == 1 ] |
| 500 | then |
| 501 | echo "Copying objc_lldb.py to ${framework_python_dir}" |
| 502 | fi |
| 503 | cp "${SRC_ROOT}/examples/summaries/cocoa/objc_lldb.py" "${framework_python_dir}" |
| 504 | else |
| 505 | if [ $Debug == 1 ] |
| 506 | then |
| 507 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/objc_lldb.py" |
| 508 | fi |
| 509 | fi |
| 510 | |
| 511 | if [ -f "${SRC_ROOT}/examples/summaries/cocoa/objc_runtime.py" ] |
| 512 | then |
| 513 | if [ $Debug == 1 ] |
| 514 | then |
| 515 | echo "Copying objc_runtime.py to ${framework_python_dir}" |
| 516 | fi |
| 517 | cp "${SRC_ROOT}/examples/summaries/cocoa/objc_runtime.py" "${framework_python_dir}" |
| 518 | else |
| 519 | if [ $Debug == 1 ] |
| 520 | then |
| 521 | echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/objc_runtime.py" |
| 522 | fi |
| 523 | fi |
| 524 | |
Greg Clayton | 3e4238d | 2011-11-04 03:34:56 +0000 | [diff] [blame] | 525 | fi |
| 526 | |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 527 | exit 0 |
Caroline Tice | 9dbe717 | 2010-06-16 19:26:52 +0000 | [diff] [blame] | 528 | |