Add astyle function to the supplied pre-commit script

And merge it with checkyear.sh