Skip to content

Commit

Permalink
Revert "scripts: mkcompile: increment .version regardless if the tree…
Browse files Browse the repository at this point in the history
… 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 8ed9029.
  • Loading branch information
franciscofranco committed Mar 4, 2018
1 parent df1445c commit 1e63ee5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/mkcompile_h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1e63ee5

Please sign in to comment.