File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ function DebugPrint()
55
55
56
56
function SetupDefaultProject()
57
57
{
58
+ is_default_project=1
58
59
project=" UmodelTool/umodel"
59
60
root=" ."
60
61
render=1
@@ -99,7 +100,7 @@ function GetBuildNumber()
99
100
[ -f " $version_file " ] && [ " $revision " ] && read last_revision < $version_file
100
101
local last_revision=${last_revision##* } # cut "#define ..."
101
102
# write back to a file if value differs or if file doesn't exist (only for UModel project, i.e. when $project is empty)
102
- [ -z " $project " ] && [ " $last_revision " != " $revision " ] && echo " #define GIT_REVISION $revision " > $version_file
103
+ [ " $is_default_project " ] && [ " $last_revision " != " $revision " ] && echo " #define GIT_REVISION $revision " > $version_file
103
104
}
104
105
105
106
# -------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments