|
@ -45,7 +45,7 @@ if [ -d minetest ]; then |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
if [ "@$enable_compile" = "@true" ]; then |
|
|
if [ "@$enable_compile" = "@true" ]; then |
|
|
date |
|
|
start=`date +%s` |
|
|
if [ -f "mtcompile-program.pl" ]; then |
|
|
if [ -f "mtcompile-program.pl" ]; then |
|
|
# perl mtcompile-program.pl build >& program.log |
|
|
# perl mtcompile-program.pl build >& program.log |
|
|
echo "Compiling via perl..." |
|
|
echo "Compiling via perl..." |
|
@ -55,7 +55,9 @@ if [ "@$enable_compile" = "@true" ]; then |
|
|
echo "Compiling via bash..." |
|
|
echo "Compiling via bash..." |
|
|
bash -e mtcompile-program.sh build --server $extra_options >& program.log |
|
|
bash -e mtcompile-program.sh build --server $extra_options >& program.log |
|
|
fi |
|
|
fi |
|
|
date |
|
|
end=`date +%s` |
|
|
|
|
|
compile_time=$((end-start)) |
|
|
|
|
|
echo "Compiling program finished in $compile_time seconds." |
|
|
else |
|
|
else |
|
|
echo "using existing minetest..." |
|
|
echo "using existing minetest..." |
|
|
fi |
|
|
fi |
|
|