Use some version checking on generator scripts, preventing a full rebuild on every build
This commit is contained in:
parent
30af43ae95
commit
1b2010faba
3 changed files with 27 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue