Changeset 1255 for trunk/kBuild
- Timestamp:
- Oct 25, 2007, 3:58:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r1242 r1255 985 985 # 986 986 # @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 # 994 990 995 991 ## generates the fetch rule … … 1001 997 $$(call MSG_FETCH_DL,$(target),$(source),$(out)) 1002 998 @## @todo do fancy stuff like download continuation. 1003 $$(QUIET)$$(RM) -f $(out) $(out).md5999 $$(QUIET)$$(RM) -f $(out) 1004 1000 $($(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)) 1007 1002 1008 1003 … … 1011 1006 $(out).checked_$(md5)_$(size): $($(target)_$(srcname)_FETCH_DEPEND_) | $($(target)_$(srcname)_FETCH_DEPORD_) 1012 1007 $$(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 $$@ 1016 1009 @# (re)fetch the file if it doesn't exist or if it doesn't matches the md5. 1017 1010 @## @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) ) \ 1019 1012 || ( $$(RM_EXT) -f $(out) \ 1020 1013 && $$(MAKE) $(out) -f $(MAKEFILE) --no-print-directory )
Note:
See TracChangeset
for help on using the changeset viewer.