Macro: Validate_Packages

Module location: VersionControl.pkg line 72 (view source)

Validate fmac version against a passed minumum version, revision, build

  #IFDEF PKG_VERSION
    #IF (PKG_Version<!1)
      #ERROR DFERR_WRONG_REVISION PKG Version Mismatch
    #ELSE
      #IF (PKG_Version = !1)
        #IF (PKG_Revision<!2)
          #ERROR DFERR_WRONG_REVISION PKG Version Mismatch
        #ELSE
          #IF (PKG_Revision = !2)
            #IF (PKG_Build<!3)
              #ERROR DFERR_WRONG_REVISION PKG Version Mismatch
            #ENDIF
          #ENDIF
        #ENDIF
      #ENDIF
    #ENDIF
  #ELSE  // if not defined, it is an old version
    #ERROR DFERR_WRONG_REVISION PKG Version Mismatch
  #ENDIF