galileo: build_newlib.sh: Only apply patch files with the extension ".patch"

This avoids treating as patches other files that may happen to be
present in the newlib patch directory in a working tree.
This commit is contained in:
Michael LeMay 2016-02-12 13:45:25 -08:00
parent 99de563e8d
commit 16145f645a

View file

@ -38,7 +38,7 @@ prepare() {
tar xf ${TARBALL} tar xf ${TARBALL}
cd ${SRC_DIR} cd ${SRC_DIR}
for i in `ls ${PATCH_DIR}`; do patch -p0 < ${PATCH_DIR}/${i}; done for i in `ls ${PATCH_DIR}/*.patch`; do patch -p0 < ${i}; done
} }