From 35f6859251ff8528f88cbc33470b932f9460ff88 Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Wed, 21 Dec 2016 22:12:39 +0000 Subject: [PATCH] - Allow comments - Add patch separator --- tools/scripts/apply-patches.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/scripts/apply-patches.sh b/tools/scripts/apply-patches.sh index 5ec1d439..cb921001 100755 --- a/tools/scripts/apply-patches.sh +++ b/tools/scripts/apply-patches.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/bash ############################################################ # # @@ -34,7 +34,10 @@ if [ -f "${PATCH_SERIES}" ]; then # The series file contains the patch order. # for p in `cat ${PATCH_SERIES}`; do - echo "Appying ${p}..." + if [[ $p = \#* ]]; then + continue; + fi + echo "*** Appying ${p}..." if [ -x "${PATCHDIR}/${p}" ]; then "${PATCHDIR}/${p}" "${KERNDIR}" else