X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b0d623f7f2ae71ed96e60569f61f9a9a27016e80..04b8595b18b1b41ac7a206e4b3d51a635f8413d7:/config/list_supported.sh diff --git a/config/list_supported.sh b/config/list_supported.sh index 340632c88..3c49b8b01 100755 --- a/config/list_supported.sh +++ b/config/list_supported.sh @@ -31,26 +31,26 @@ TARGET_FILE=$3 SUPPORTED_KPI_FILES=( BSDKernel Mach IOKit Libkern ) DEPENDENCY_NAMES=( com.apple.kpi.bsd com.apple.kpi.mach com.apple.kpi.iokit com.apple.kpi.libkern ) -rm -f $TARGET_FILE +rm -f ${TARGET_FILE} -if [ ${ARCH} == "ALL" ] +if [ ${ARCH} == "all" ] then - echo "The following symbols are considered sustainable KPI on all architectures." >> $TARGET_FILE - echo "Note that symbols may be exported by some (or all) architectures individually." >> $TARGET_FILE + echo "The following symbols are considered sustainable KPI on all architectures." >> ${TARGET_FILE} + echo "Note that symbols may be exported by some (or all) architectures individually." >> ${TARGET_FILE} else - echo "The following symbols are considered sustainable KPI on architecture ${ARCH}." >> $TARGET_FILE + echo "The following symbols are considered sustainable KPI on architecture ${ARCH}." >> ${TARGET_FILE} fi -echo >> $TARGET_FILE +echo >> ${TARGET_FILE} for (( i = 0 ; i < ${#SUPPORTED_KPI_FILES[@]} ; i++ )) do - echo "Exported by ${DEPENDENCY_NAMES[i]}:" >> $TARGET_FILE - echo >> $TARGET_FILE - if [ $ARCH == "ALL" ] + echo "Exported by ${DEPENDENCY_NAMES[i]}:" >> ${TARGET_FILE} + echo >> ${TARGET_FILE} + if [ ${ARCH} == "all" ] then - cat "${CONFIG_DIR}/${SUPPORTED_KPI_FILES[i]}.exports" | sed "s/^_//" | sed "s/:.*//" | sort >> $TARGET_FILE + cat "${CONFIG_DIR}/${SUPPORTED_KPI_FILES[i]}.exports" | sed "s/^_//" | sed "s/:.*//" | sort >> ${TARGET_FILE} else - cat "${CONFIG_DIR}/${SUPPORTED_KPI_FILES[i]}.${ARCH}.exports" | sed "s/^_//" | sed "s/:.*//" | sort >> $TARGET_FILE + cat "${CONFIG_DIR}/${SUPPORTED_KPI_FILES[i]}.${ARCH}.exports" | sed "s/^_//" | sed "s/:.*//" | sort >> ${TARGET_FILE} fi - echo >> $TARGET_FILE + echo >> ${TARGET_FILE} done