rule DetermineHaikuRevision: Avoid duplicate command execution
... when HAIKU_REVISION is set.
This commit is contained in:
+1
-1
@@ -375,11 +375,11 @@ rule DetermineHaikuRevision
|
|||||||
local gitIndex = <haiku-rootdir-git>index ;
|
local gitIndex = <haiku-rootdir-git>index ;
|
||||||
local revisionFile = <haiku-rootdir-git>haiku-revision ;
|
local revisionFile = <haiku-rootdir-git>haiku-revision ;
|
||||||
if ! [ on $(gitIndex) return $(HAIKU_GIT_REVISION_DETERMINED) ] {
|
if ! [ on $(gitIndex) return $(HAIKU_GIT_REVISION_DETERMINED) ] {
|
||||||
|
HAIKU_GIT_REVISION_DETERMINED on $(gitIndex) = 1 ;
|
||||||
MakeLocate $(revisionFile) : $(HAIKU_BUILD_OUTPUT_DIR) ;
|
MakeLocate $(revisionFile) : $(HAIKU_BUILD_OUTPUT_DIR) ;
|
||||||
if $(HAIKU_REVISION) {
|
if $(HAIKU_REVISION) {
|
||||||
DetermineHaikuRevision2 $(revisionFile) ;
|
DetermineHaikuRevision2 $(revisionFile) ;
|
||||||
} else if [ Glob [ FDirName $(HAIKU_TOP) .git ] : index ] {
|
} else if [ Glob [ FDirName $(HAIKU_TOP) .git ] : index ] {
|
||||||
HAIKU_GIT_REVISION_DETERMINED on $(gitIndex) = 1 ;
|
|
||||||
SEARCH on $(gitIndex) = [ FDirName $(HAIKU_TOP) .git ] ;
|
SEARCH on $(gitIndex) = [ FDirName $(HAIKU_TOP) .git ] ;
|
||||||
Depends $(revisionFile) : $(gitIndex) ;
|
Depends $(revisionFile) : $(gitIndex) ;
|
||||||
DetermineHaikuRevision1 $(revisionFile) : $(gitIndex) ;
|
DetermineHaikuRevision1 $(revisionFile) : $(gitIndex) ;
|
||||||
|
|||||||
Reference in New Issue
Block a user