From 16df02e51593b094b2f4b196302a0c266d17c0c9 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 5 Sep 2007 03:08:38 +0000 Subject: [PATCH] New DownloadFile rule, downloading a file using wget. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22181 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/FileRules | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build/jam/FileRules b/build/jam/FileRules index 292485b3dd..b71e0eeef7 100644 --- a/build/jam/FileRules +++ b/build/jam/FileRules @@ -273,3 +273,15 @@ actions DataFileToSourceFile1 $(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR) $(2[1]) $(DATA_VARIABLE) $(SIZE_VARIABLE) $(2[2]) $(1) } + +rule DownloadFile target : url +{ + URL on $(target) = $(url) ; + + DownloadFile1 $(target) ; +} + +actions DownloadFile1 +{ + wget -O $(1) $(URL) +}