Skip to content

Commit 6d9e7a7

Browse files
committed
Call submodule download scripts from download.sh
Now the complete build can run without network access if download.sh is executed first.
1 parent 3503760 commit 6d9e7a7

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

download.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ if [ $# -eq 0 ]; then
1717
sed -e 's:^.*/::g' -e 's/.* -> //g' < archives.txt | while read file; do
1818
../download.sh "$file" || exit
1919
done
20+
for i in ../submodules/*/download.sh; do
21+
if [ -x "$i" ]; then
22+
"$i"
23+
fi
24+
done
2025
exit
2126
fi
2227

scripts/015-sdl_psl1ght_libs.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
## Unpack the source code.
1111
rm -Rf sdl_psl1ght_libs && mkdir sdl_psl1ght_libs && git --git-dir=../submodules/SDL_PSL1GHT_Libs/.git --work-tree=sdl_psl1ght_libs checkout-index -a
1212

13+
## Use any already downloaded archives from submodules dir
14+
for i in ../submodules/SDL_PSL1GHT_Libs/archives/*; do
15+
case "$i" in
16+
*/archives.txt) ;;
17+
*) [ -f "$i" ] && ln "$i" sdl_psl1ght_libs/archives/ ;;
18+
esac
19+
done
20+
1321
## Create the build directory.
1422
cd sdl_psl1ght_libs
1523

0 commit comments

Comments
 (0)