|
@ -14,11 +14,13 @@ if [ -z "$KEEP_MAKE" ]; then |
|
|
fi |
|
|
fi |
|
|
if [ -f bin/minetest ]; then |
|
|
if [ -f bin/minetest ]; then |
|
|
if [ "$KEEP_MAKE" != "1" ]; then |
|
|
if [ "$KEEP_MAKE" != "1" ]; then |
|
|
echo "* running 'make clean' in `pwd`..." |
|
|
echo "* [build-minetest-here.sh] running 'make clean' in `pwd`..." |
|
|
make clean || customExit "$0: make clean failed in '`pwd`'." |
|
|
make clean || customExit "$0: make clean failed in '`pwd`'." |
|
|
else |
|
|
else |
|
|
echo "* keeping existing intermediate build files in `pwd` (KEEP_MAKE=$KEEP_MAKE)..." |
|
|
echo "* [build-minetest-here.sh] keeping existing intermediate build files in `pwd` (KEEP_MAKE=$KEEP_MAKE)..." |
|
|
fi |
|
|
fi |
|
|
|
|
|
else |
|
|
|
|
|
echo "* [build-minetest-here.sh] There is no bin/minetest in `pwd`." |
|
|
fi |
|
|
fi |
|
|
# echo "BREAKPOINT 20s..." |
|
|
# echo "BREAKPOINT 20s..." |
|
|
# sleep 20 |
|
|
# sleep 20 |
|
@ -43,7 +45,7 @@ elif [ "@$RUN_IN_PLACE" = "@no" ]; then |
|
|
elif [ "@$RUN_IN_PLACE" = "@0" ]; then |
|
|
elif [ "@$RUN_IN_PLACE" = "@0" ]; then |
|
|
RUN_IN_PLACE=0 |
|
|
RUN_IN_PLACE=0 |
|
|
else |
|
|
else |
|
|
echo "ERROR: There is an unknown value for RUN_IN_PLACE: '$RUN_IN_PLACE'" |
|
|
echo "[build-minetest-here.sh] ERROR: There is an unknown value for RUN_IN_PLACE: '$RUN_IN_PLACE'" |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
echo "RUN_IN_PLACE=$RUN_IN_PLACE" |
|
|
echo "RUN_IN_PLACE=$RUN_IN_PLACE" |
|
@ -62,11 +64,11 @@ fi |
|
|
if [ ! -z "$BUILD_SERVER" ]; then |
|
|
if [ ! -z "$BUILD_SERVER" ]; then |
|
|
server_line="-DBUILD_SERVER=$BUILD_SERVER" |
|
|
server_line="-DBUILD_SERVER=$BUILD_SERVER" |
|
|
fi |
|
|
fi |
|
|
|
|
|
echo "* [build-minetest-here.sh] running cmake in `pwd`..." |
|
|
cmake . $server_line $client_line -DOpenGL_GL_PREFERENCE=GLVND -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DRUN_IN_PLACE=$RUN_IN_PLACE && make -j$(grep -c processor /proc/cpuinfo) || customExit "$0: Build failed in '`pwd`'." |
|
|
cmake . $server_line $client_line -DOpenGL_GL_PREFERENCE=GLVND -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DRUN_IN_PLACE=$RUN_IN_PLACE && make -j$(grep -c processor /proc/cpuinfo) || customExit "$0: Build failed in '`pwd`'." |
|
|
echo |
|
|
echo |
|
|
if [ "@$RUN_IN_PLACE" = "@1" ]; then |
|
|
if [ "@$RUN_IN_PLACE" = "@1" ]; then |
|
|
echo "WARNING: do not do make install with -DRUN_IN_PLACE=$RUN_IN_PLACE!" |
|
|
echo "[build-minetest-here.sh] WARNING: do not do make install with -DRUN_IN_PLACE=$RUN_IN_PLACE!" |
|
|
fi |
|
|
fi |
|
|
echo |
|
|
echo |
|
|
#/home/owner/git/EnlivenMinetest/install-minetest.sh says: |
|
|
#/home/owner/git/EnlivenMinetest/install-minetest.sh says: |
|
|