mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Don't generate a new Revision.h file if revision hasn't changed
This prevent CMake from forcing a build of everything that depends on that file.
This commit is contained in:
parent
3daf1c0e49
commit
de7547727b
|
@ -1,5 +1,12 @@
|
|||
SCRIPT_DIRECTORY=`dirname $0`
|
||||
rev=\"`git rev-parse --short HEAD`\"
|
||||
lastrev=$(head -n 1 $SCRIPT_DIRECTORY/Revision.h | awk -F'PLUGIN_REVISION ' {'print $2'})
|
||||
|
||||
echo current revision $rev
|
||||
echo "#define PLUGIN_REVISION $rev" > $SCRIPT_DIRECTORY/Revision.h
|
||||
echo "#define PLUGIN_REVISION_W L$rev" >> $SCRIPT_DIRECTORY/Revision.h
|
||||
echo last build revision $lastrev
|
||||
|
||||
if [ "$lastrev" != "$rev" ]
|
||||
then
|
||||
echo "#define PLUGIN_REVISION $rev" > $SCRIPT_DIRECTORY/Revision.h
|
||||
echo "#define PLUGIN_REVISION_W L$rev" >> $SCRIPT_DIRECTORY/Revision.h
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user