From 54f112e9deca3bd8c0ea4c433d1adf5875f3d23f Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Sun, 1 Mar 2015 16:00:04 -0800 Subject: [PATCH 1/2] Fix typo in mgit fetch rule --- libretro-fetch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-fetch.sh b/libretro-fetch.sh index 31c91dea..ef252ab4 100755 --- a/libretro-fetch.sh +++ b/libretro-fetch.sh @@ -78,7 +78,7 @@ libretro_fetch() { for (( i=0; i < $num_git_urls; ++i )); do eval "git_url=\$libretro_${1}_mgit_url_$i" eval "git_subdir=\$libretro_${1}_mgit_dir_$i" - eval "git_submodules=\$libretro_${1}_mgit_dir_$i" + eval "git_submodules=\$libretro_${1}_mgit_submodules_$i" fetch_git "$git_url" "$module_dir/$git_subdir" "$git_submodules" done ;; From 1f67e29692788fb050810d8cd332e88ee3df1fcd Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Sun, 1 Mar 2015 16:06:13 -0800 Subject: [PATCH 2/2] Improve core rules documentation a little. --- rules.d/core-rules.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rules.d/core-rules.sh b/rules.d/core-rules.sh index 0c2d1e59..407a56bc 100644 --- a/rules.d/core-rules.sh +++ b/rules.d/core-rules.sh @@ -278,6 +278,8 @@ libretro_fuse_build_platform="$FORMAT_COMPILER_TARGET_ALT" # fetch_rule Name of the core's fetch rule # Currently "git" (default) or "multi_git" # +# For the "git" fetch rule: +# # git_url Source to fetch via git # REQUIRED for fetch actions # @@ -287,6 +289,18 @@ libretro_fuse_build_platform="$FORMAT_COMPILER_TARGET_ALT" # build_subdir Subdir containing the libretro makefile # Leave unset if in top level of core # +# For the "multi_git" fetch rule: +# +# mgit_urls Number of URLs to fetch +# +# mgit_url_ th URL to fetch, start with 0 +# If you have 4 mgit_urls, will be 0, 1, 2, or 3 +# +# mgit_dir_ th directory to fetch into +# You must set this for each URL +# +# For the generic makefile build rule: +# # build_makefile Name of makefile # If unset, GNU make has rules for default makefile names #