Ignore:
Timestamp:
Oct 25, 2007, 3:58:30 AM (18 years ago)
Author:
bird
Message:

Use the kBuild md5sum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r1242 r1255  
    985985#
    986986# @todo
    987 #       1. Port md5sum or some equivalent tool and include it in kBuild.
    988 #   2. Download corruption / continuation.
    989 #   3. It's quite possible that there is one too many indirect dependency now...
    990 #
    991 
    992 ## @todo move this!
    993 MD5SUM := md5sum
     987#   1. Download corruption / continuation.
     988#   2. It's quite possible that there is one too many indirect dependency now...
     989#
    994990
    995991## generates the fetch rule
     
    1001997        $$(call MSG_FETCH_DL,$(target),$(source),$(out))
    1002998        @## @todo do fancy stuff like download continuation.
    1003         $$(QUIET)$$(RM) -f $(out) $(out).md5
     999        $$(QUIET)$$(RM) -f $(out)
    10041000        $($(target)_$(srcname)_FETCH_CMDS_)
    1005         $$(QUIET2)$(if $(md5),$$(APPEND) $(out).md5 "$(md5) *$(out)")
    1006         $$(QUIET)$(if $(md5),$$(MD5SUM) -c $(out).md5)
     1001        $$(QUIET)$(if $(md5),$$(MD5SUM_EXT) -b -C $(md5) $(out))
    10071002
    10081003
     
    10111006$(out).checked_$(md5)_$(size): $($(target)_$(srcname)_FETCH_DEPEND_) | $($(target)_$(srcname)_FETCH_DEPORD_)
    10121007        $$(call MSG_FETCH_CHK,$(target),$(source),$(out))
    1013         $$(QUIET)$$(RM) -f $$@ $(out).md5
    1014         @# creates the .md5 we pass to md5sum.
    1015         $$(QUIET2)$(if $(md5),$$(APPEND) $(out).md5 "$(md5) *$(out)")
     1008        $$(QUIET)$$(RM) -f $$@
    10161009        @# (re)fetch the file if it doesn't exist or if it doesn't matches the md5.
    10171010        @## @todo do fancy stuff like download continuation.
    1018         $$(QUIET)( test -f $(out) && $(if $(md5),$$(MD5SUM) -c $(out).md5, true) ) \
     1011        $$(QUIET)( test -f $(out) && $(if $(md5),$$(MD5SUM_EXT) -b -C $(md5) $(out), true) ) \
    10191012                  || (   $$(RM_EXT) -f $(out) \
    10201013                      && $$(MAKE)      $(out) -f $(MAKEFILE) --no-print-directory )
Note: See TracChangeset for help on using the changeset viewer.