docker: nproc and submodule init

Signed-off-by: matthias <uso.cosmo.ray@gmail.com>
This commit is contained in:
Matthias Gatto 2020-11-08 03:04:36 +01:00
parent 0df7331a48
commit 4dbe2c15f6
2 changed files with 8 additions and 4 deletions

View File

@ -6,6 +6,7 @@ git clone yirl ./build
cd build/
git checkout origin/master
echo -n "current git revision: "
git log --pretty=oneline -1
git clean -df
@ -14,16 +15,17 @@ git submodule update --init --recursive
make clean_all #in case copied directry wasn't empty
cd tinycc
./configure --extra-cflags=-fPIC
make
make -j$(nproc)
cd ..
cd SDL_mixer
./autogen.sh
./configure CFLAGS="-fPIC"
make
make -j$(nproc)
cd ..
make quickjs-2020-03-16
ls quickjs-2020-03-16
make
make -j$(nproc)
make # just in case last one doesn't work
rm -rvf /yirl/docker-package/
./package-maker.sh ./yirl-loader /yirl/docker-package/
cp -rvf tinycc/ /yirl/docker-package/

View File

@ -3,7 +3,9 @@
BUILD_DST=.
if [ $# -eq 3 ]; then
BUILD_DST=$3
# if it's build from docker, chance are, submodules haven't been pull yet
git submodule update --init --recursive
BUILD_DST=$3
elif [ $# -ne 2 ]; then
echo "Usage: package-game.sh src dst [docker-build]"
return 1