Use some version checking on generator scripts, preventing a full rebuild on every build

This commit is contained in:
mdiluzio 2015-01-10 15:11:36 +00:00
parent 30af43ae95
commit 1b2010faba
3 changed files with 27 additions and 6 deletions

View file

@ -10,4 +10,9 @@ HEADER="// Auto generated ttrts version header
#endif //_TTRTS_VERSION_H_"
echo "$HEADER" > "version.h"
echo "$HEADER" > "version.h.tmp"
# If no difference
if [ ! -e version.h ] || [ ! -z $( diff version.h version.h.tmp ) ]; then
mv -f version.h.tmp version.h
fi