Merge pull request #216 from iKarith/master

Cleanups for mgit fetch rule
This commit is contained in:
Twinaphex 2015-03-02 01:29:54 +01:00
commit fa000c72f0
2 changed files with 15 additions and 1 deletions

View File

@ -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
;;

View File

@ -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_<n> <n>th URL to fetch, start with 0
# If you have 4 mgit_urls, <n> will be 0, 1, 2, or 3
#
# mgit_dir_<n> <n>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
#