mirror of
https://github.com/libretro/libretro-super
synced 2025-02-22 15:40:01 +00:00
libretro-fetch.sh - cleanups - properly fetch latest versions of
submodules now
This commit is contained in:
parent
beacb436e7
commit
16d1ddf2e1
@ -50,21 +50,6 @@ fetch_project()
|
|||||||
echo "=== Fetched ==="
|
echo "=== Fetched ==="
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch_subproject()
|
|
||||||
{
|
|
||||||
echo "=== Fetching $4 ==="
|
|
||||||
cd "$2"
|
|
||||||
if [ -d "$3/.git" ]; then
|
|
||||||
cd "$3"
|
|
||||||
git pull
|
|
||||||
cd ..
|
|
||||||
else
|
|
||||||
git clone "$1" "$3"
|
|
||||||
fi
|
|
||||||
cd ..
|
|
||||||
echo "=== Fetched ==="
|
|
||||||
}
|
|
||||||
|
|
||||||
fetch_subprojects()
|
fetch_subprojects()
|
||||||
{
|
{
|
||||||
echo "=== Fetching $5 ==="
|
echo "=== Fetching $5 ==="
|
||||||
@ -73,6 +58,7 @@ fetch_subprojects()
|
|||||||
if [ -d "$4/.git" ]; then
|
if [ -d "$4/.git" ]; then
|
||||||
cd "$4"
|
cd "$4"
|
||||||
git pull
|
git pull
|
||||||
|
git submodule foreach git pull origin master
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
git clone "$1" "$4"
|
git clone "$1" "$4"
|
||||||
@ -88,6 +74,7 @@ fetch_project_submodule()
|
|||||||
if [ -d "$2/.git" ]; then
|
if [ -d "$2/.git" ]; then
|
||||||
cd "$2"
|
cd "$2"
|
||||||
git pull
|
git pull
|
||||||
|
git submodule foreach git pull origin master
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
git clone "$1" "$2"
|
git clone "$1" "$2"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user