newvers.sh: add newline at EOF in generated vers.c

Previously we omitted the newline, which did not cause a functional
issue for the build but resulted in suboptimal output from e.g.
`cat vers.c`.
This commit is contained in:
Ed Maste 2021-01-25 14:53:47 -05:00
parent 868643e722
commit 8564660237

View file

@ -311,7 +311,7 @@ EOF
)
vers_content_old=$(cat vers.c 2>/dev/null || true)
if [ "$vers_content_new" != "$vers_content_old" ]; then
printf "%s" "$vers_content_new" > vers.c
printf "%s\n" "$vers_content_new" > vers.c
fi
echo $((v + 1)) > version