forked from TeehanLax/OHAttributedLabel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
default: | ||
xcodebuild -target OHAttributedLabel -configuration Release -sdk iphonesimulator build | ||
xcodebuild -target OHAttributedLabel -configuration Release -sdk iphoneos build | ||
./scripts/combine-libs.sh build Release | ||
|
||
clean: | ||
-rm -rf build/* | ||
|
||
|
||
|
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
# thank you gabriel ttps://github.com/gabriel | ||
|
||
LIB_NAME="libOHAttributedLabel.a" | ||
BUILD_DIR="./$1" | ||
CONFIGURATION="$2" | ||
LIB_DIR="${BUILD_DIR}/${CONFIGURATION}-Combined" | ||
|
||
if [ ! -d "${LIB_DIR}" ]; then | ||
mkdir -p "${LIB_DIR}" | ||
fi | ||
|
||
# Combine lib files | ||
lipo -create "${BUILD_DIR}/${CONFIGURATION}-iphoneos/${LIB_NAME}" "${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${LIB_NAME}" -output "${LIB_DIR}/${LIB_NAME}" | ||
cp -r "${BUILD_DIR}/${CONFIGURATION}-iphoneos/include" "${LIB_DIR}" | ||
|
||
# in lieu of a version number | ||
VERSION_FILE="${LIB_DIR}/provenance.txt" | ||
WHO=`whoami` | ||
echo "who: ${WHO}" > "${VERSION_FILE}" | ||
DATE=$( /bin/date +"%Y-%m-%d %H:%M:%S" ) | ||
echo "date: ${DATE}" >> "${VERSION_FILE}" | ||
gitpath=`which git` | ||
GITREV_SHORT=`$gitpath rev-parse --short HEAD` | ||
GITREV_SHA=`$gitpath rev-parse HEAD` | ||
echo "git rev (short): ${GITREV_SHORT}" >> "${VERSION_FILE}" | ||
echo "git rev: ${GITREV_SHA}" >> "${VERSION_FILE}" | ||
|
||
open "${LIB_DIR}" |
This file contains 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 characters