]> git.saurik.com Git - apple/libpthread.git/blob - xcodescripts/install-lldbmacros.sh
libpthread-416.100.3.tar.gz
[apple/libpthread.git] / xcodescripts / install-lldbmacros.sh
1 #!/bin/bash -e
2 # install the pthread lldbmacros into the module
3
4 mkdir -p $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/Python || true
5 rsync -aq $SRCROOT/lldbmacros/* $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/Python
6
7 for variant in $BUILD_VARIANTS; do
8 case $variant in
9 normal)
10 SUFFIX=""
11 ;;
12 *)
13 SUFFIX="_$variant"
14 ;;
15 esac
16
17 ln -sf init.py $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/Python/$EXECUTABLE_NAME$SUFFIX.py
18 done
19
20 if test "$PLATFORM_NAME" != macosx; then
21 mkdir -p $DSTROOT/AppleInternal/KextObjects/Python/$MODULE_NAME || true
22 rsync -aq $SRCROOT/lldbmacros/* $DSTROOT/AppleInternal/KextObjects/Python/$MODULE_NAME
23 ln -sf init.py $DSTROOT/AppleInternal/KextObjects/Python/$MODULE_NAME/$EXECUTABLE_NAME.py
24 fi