Created
April 6, 2010 23:20
Revisions
-
cSquirrel revised this gist
Apr 7, 2010 . 1 changed file with 10 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,32 +1,32 @@ # Destination root for the framework DESTROOT="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}-${CURRENT_PROJECT_VERSION}" mkdir -p "${DESTROOT}" # IPHONE_DEST="${DESTROOT}/iPhone Framework" DOC_DEST="${DESTROOT}/Documentation" # Populate the framework folder mkdir -p "${IPHONE_DEST}" tar -C "${BUILT_PRODUCTS_DIR}" -cf - "${PRODUCT_NAME}.framework" | tar -C "${IPHONE_DEST}" -xf - # Build documentation (or not) BUILD_DOCUMENTATION="no" if [ -x `which doxygen` -a "${BUILD_DOCUMENTATION}" = "yes" ]; then pushd "${SRCROOT}" >/dev/null doxygen if [ $? != 0 ]; then echo "ERROR: Documentation generation failed" >/dev/stderr exit 1 fi popd >/dev/null rm -rf "${DOC_DEST}" mv Documentation "${DOC_DEST}" else echo "WARNING: Doxygen not available, skipping documentation generation" >/dev/stderr fi # Create the framework disk image rm -f "${DESTROOT}.dmg" hdiutil create -srcfolder "${DESTROOT}" "${DESTROOT}.dmg" -
cSquirrel revised this gist
Apr 7, 2010 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,9 @@ DOC_DEST="${DESTROOT}/Documentation" mkdir -p "${IPHONE_DEST}" tar -C "${BUILT_PRODUCTS_DIR}" -cf - "${PRODUCT_NAME}.framework" | tar -C "${IPHONE_DEST}" -xf - # Build documentation (or not) BUILD_DOCUMENTATION="no" if [ -x `which doxygen` -a "${BUILD_DOCUMENTATION}" = "yes" ]; then pushd "${SRCROOT}" >/dev/null doxygen if [ $? != 0 ]; then -
cSquirrel revised this gist
Apr 6, 2010 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,21 +8,21 @@ DOC_DEST="${DESTROOT}/Documentation" # Populate the destroot mkdir -p "${IPHONE_DEST}" tar -C "${BUILT_PRODUCTS_DIR}" -cf - "${PRODUCT_NAME}.framework" | tar -C "${IPHONE_DEST}" -xf - if [ ! -z `which doxygen` ]; then pushd "${SRCROOT}" >/dev/null doxygen if [ $? != 0 ]; then echo "ERROR: Documentation generation failed" >/dev/stderr exit 1 fi popd >/dev/null rm -rf "${DOC_DEST}" mv Documentation "${DOC_DEST}" else echo "WARNING: Doxygen not available, skipping documentation generation" >/dev/stderr fi # Create the disk image -
cSquirrel created this gist
Apr 6, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ # Set the destroot DESTROOT="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}-${CURRENT_PROJECT_VERSION}" mkdir -p "${DESTROOT}" # Per-platform framework destinations IPHONE_DEST="${DESTROOT}/iPhone Framework" DOC_DEST="${DESTROOT}/Documentation" # Populate the destroot mkdir -p "${IPHONE_DEST}" tar -C "${BUILD_DIR}/${CONFIGURATION}-iphoneos" -cf - "${PRODUCT_NAME}.framework" | tar -C "${IPHONE_DEST}" -xf - if [ ! -z `which doxygen` ]; then pushd "${SRCROOT}" >/dev/null doxygen if [ $? != 0 ]; then echo "ERROR: Documentation generation failed" >/dev/stderr exit 1 fi popd >/dev/null rm -rf "${DOC_DEST}" mv Documentation "${DOC_DEST}" else echo "WARNING: Doxygen not available, skipping documentation generation" >/dev/stderr fi # Create the disk image rm -f "${DESTROOT}.dmg" hdiutil create -srcfolder "${DESTROOT}" "${DESTROOT}.dmg"