From 1e63ee54f595bbce7e9be7df39603d90ec873670 Mon Sep 17 00:00:00 2001 From: Francisco Franco Date: Sun, 4 Mar 2018 18:54:26 +0000 Subject: [PATCH] Revert "scripts: mkcompile: increment .version regardless if the tree has been changed or not, since we're changing .version manually before each build. Don't pick this for other Kernels, it's only useful for my build setup" This reverts commit 8ed902929d7db8c93b0c7ea45efb85f2c92115d7. --- scripts/mkcompile_h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index ddcbf2988de9..f221ddf69080 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h @@ -88,6 +88,13 @@ UTS_TRUNCATE="cut -b -$UTS_LEN" # changed comment in the # first line. -vecho " UPD $TARGET" -mv -f .tmpcompile $TARGET +if [ -r $TARGET ] && \ + grep -v 'UTS_VERSION' $TARGET > .tmpver.1 && \ + grep -v 'UTS_VERSION' .tmpcompile > .tmpver.2 && \ + cmp -s .tmpver.1 .tmpver.2; then + rm -f .tmpcompile +else + vecho " UPD $TARGET" + mv -f .tmpcompile $TARGET +fi rm -f .tmpver.1 .tmpver.2