]>
git.saurik.com Git - apple/dyld.git/blob - build-scripts/libdyld-generate-version-headers.sh
3 if [ "${DRIVERKIT}" = 1 ]; then
4 RUNTIME_PREFIX
="/System/DriverKit/Runtime"
9 /bin
/mkdir -p ${DERIVED_FILES_DIR}
10 /bin
/mkdir -p ${DSTROOT}${RUNTIME_PREFIX}/usr
/local
/include
/mach
-o/
12 VERSIONS
=${SDKROOT}${RUNTIME_PREFIX}/usr
/local
/include
/dyld
/for_dyld_priv.inc
13 DYLD_PRIV_IN
=${SRCROOT}/include
/mach
-o/dyld_priv.h
14 DYLD_PRIV_OUT
=${DSTROOT}${RUNTIME_PREFIX}/usr
/local
/include
/mach
-o/dyld_priv.h
15 TMPFILE
=$(mktemp ${DERIVED_FILES_DIR}/dyld_priv.h.XXXXXX)
17 /bin
/chmod 0644 $TMPFILE
19 while IFS
="" read -r p
|| [ -n "$p" ]
22 *@VERSION_DEFS
* ) cat "$VERSIONS" >> $TMPFILE ;;
23 * ) echo "$p" >> $TMPFILE ;;
27 /usr
/bin
/rsync
-vc $TMPFILE $DYLD_PRIV_OUT