]> git.saurik.com Git - apple/xnu.git/blobdiff - config/list_supported.sh
xnu-2782.20.48.tar.gz
[apple/xnu.git] / config / list_supported.sh
index 340632c88ecd825bc433dbce6677308ed697fc4d..3c49b8b012fcd597572cf824abc414e836c1f2d6 100755 (executable)
@@ -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