]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - postprocess-headers.sh
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / postprocess-headers.sh
... / ...
CommitLineData
1cd "${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}"
2
3UNIFDEF_OPTIONS="-D__MAC_OS_X_VERSION_MIN_REQUIRED=${TARGET_MAC_OS_X_VERSION_MAJOR}"
4
5for ((i = 0; i < ${SCRIPT_INPUT_FILE_COUNT}; ++i)); do
6 eval HEADER=\${SCRIPT_INPUT_FILE_${i}};
7 unifdef -B ${UNIFDEF_OPTIONS} -o ${HEADER}.unifdef ${HEADER}
8 case $? in
9 0)
10 rm ${HEADER}.unifdef
11 ;;
12 1)
13 mv ${HEADER}{.unifdef,}
14 ;;
15 *)
16 exit 1
17 esac
18done