master
 1#!/bin/sh
 2set -e
 3
 4RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
 5> "$RESOURCES_TO_COPY"
 6
 7install_resource()
 8{
 9  case $1 in
10    *.storyboard)
11      echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
12      ibtool --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
13      ;;
14    *.xib)
15        echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
16      ibtool --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
17      ;;
18    *.framework)
19      echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
20      mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
21      echo "cp -fpR ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
22      cp -fpR "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
23      ;;
24    *.xcdatamodeld)
25      echo "xcrun momc ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xcdatamodeld`.momd"
26      xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xcdatamodeld`.momd"
27      ;;
28    *)
29      echo "${PODS_ROOT}/$1"
30      echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY"
31      ;;
32  esac
33}
34install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/arrived.png'
35install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/arrived@2x.png'
36install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/button_grey.png'
37install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/button_grey@2x.png'
38install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/button_red.png'
39install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/button_red@2x.png'
40install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-black-button-selected.png'
41install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-black-button-selected@2x.png'
42install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-black-button.png'
43install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-black-button@2x.png'
44install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-gray-button-selected.png'
45install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-gray-button-selected@2x.png'
46install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-gray-button.png'
47install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-gray-button@2x.png'
48install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-red-button-selected.png'
49install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-red-button-selected@2x.png'
50install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-red-button.png'
51install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-red-button@2x.png'
52install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-sheet-panel.png'
53install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/ActionSheet/action-sheet-panel@2x.png'
54install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-black-button.png'
55install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-black-button@2x.png'
56install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-gray-button.png'
57install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-gray-button@2x.png'
58install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-green-button.png'
59install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-green-button@2x.png'
60install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-red-button.png'
61install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-red-button@2x.png'
62install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-window-landscape.png'
63install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-window-landscape@2x.png'
64install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-window.png'
65install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-window@2x.png'
66install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-yellow-button.png'
67install_resource 'BlockAlertsAnd-ActionSheets/BlockAlertsDemo/images/AlertView/alert-yellow-button@2x.png'
68install_resource 'TSMessages/Resources/design.json'
69install_resource 'TSMessages/Resources/Images/NotificationBackgroundError.png'
70install_resource 'TSMessages/Resources/Images/NotificationBackgroundError@2x.png'
71install_resource 'TSMessages/Resources/Images/NotificationBackgroundErrorIcon.png'
72install_resource 'TSMessages/Resources/Images/NotificationBackgroundErrorIcon@2x.png'
73install_resource 'TSMessages/Resources/Images/NotificationBackgroundMessage.png'
74install_resource 'TSMessages/Resources/Images/NotificationBackgroundMessage@2x.png'
75install_resource 'TSMessages/Resources/Images/NotificationBackgroundSuccess.png'
76install_resource 'TSMessages/Resources/Images/NotificationBackgroundSuccess@2x.png'
77install_resource 'TSMessages/Resources/Images/NotificationBackgroundSuccessIcon.png'
78install_resource 'TSMessages/Resources/Images/NotificationBackgroundSuccessIcon@2x.png'
79install_resource 'TSMessages/Resources/Images/NotificationBackgroundWarning.png'
80install_resource 'TSMessages/Resources/Images/NotificationBackgroundWarning@2x.png'
81install_resource 'TSMessages/Resources/Images/NotificationBackgroundWarningIcon.png'
82install_resource 'TSMessages/Resources/Images/NotificationBackgroundWarningIcon@2x.png'
83install_resource 'TSMessages/Resources/Images/NotificationButtonBackground.png'
84install_resource 'TSMessages/Resources/Images/NotificationButtonBackground@2x.png'
85
86rsync -avr --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
87rm "$RESOURCES_TO_COPY"