printf"* checking for '$TRY_NAME' or '$EXISTING_NAME'..."
printf"* checking for '$TRY_NAME' or '$EXISTING_NAME'..."
FOUND=false
FOUND=false
@ -59,7 +61,8 @@ if [ -d "$EXISTING_NAME" ]; then
else
else
echo"OK"
echo"OK"
fi
fi
echo"'`realpath $EXISTING_NAME`' is ready to use."
MASTER_PATH="`realpath $EXISTING_NAME`"
echo"'$MASTER_PATH' (EXISTING_NAME) is ready to use."
DO_EXTRACT=false
DO_EXTRACT=false
else
else
echo"removing $EXISTING_NAME ($WHY_FORCE)."
echo"removing $EXISTING_NAME ($WHY_FORCE)."
@ -75,7 +78,8 @@ if [ -d "$TRY_NAME" ]; then
EXISTING_VERSION="$TRY_VERSION"
EXISTING_VERSION="$TRY_VERSION"
echo"Warning: using existing '`realpath $TRY_NAME`'. Specify --force to replace it with the remote version."
echo"Warning: using existing '`realpath $TRY_NAME`'. Specify --force to replace it with the remote version."
DO_EXTRACT=false
DO_EXTRACT=false
echo"'`realpath $TRY_NAME`' is ready to use."
MASTER_PATH="`realpath $TRY_NAME`"
echo"'$MASTER_PATH' (local copy: $TRY_NAME today's datestamp) is ready to use."
# else true, so check for it later if version matches.
# else true, so check for it later if version matches.
else
else
echo"Found `realpath $TRY_NAME` (will be replaced if same version as remote due to $WHY_FORCE)"
echo"Found `realpath $TRY_NAME` (will be replaced if same version as remote due to $WHY_FORCE)"
@ -144,7 +148,8 @@ if [ "x$DO_EXTRACT" = "xtrue" ]; then
if[ -d "$GOT_NAME"];then
if[ -d "$GOT_NAME"];then
if["x$FORCE_LMK_UPDATE" !="true"];then
if["x$FORCE_LMK_UPDATE" !="true"];then
echo"Warning: using existing '`realpath $GOT_NAME`'. Specify --force (or delete it and re-run this script normally) to replace it with the remote version."
echo"Warning: using existing '`realpath $GOT_NAME`'. Specify --force (or delete it and re-run this script normally) to replace it with the remote version."
echo"'`realpath $GOT_NAME`' is ready to use."
MASTER_PATH="`realpath $GOT_NAME`"
echo"'$MASTER_PATH' (GOT_NAME from previously-extracted local copy's version) is ready to use."
else
else
echo"* merging (and moving) '`realpath linux-minetest-kit`' into '`realpath $GOT_NAME`'..."
echo"* merging (and moving) '`realpath linux-minetest-kit`' into '`realpath $GOT_NAME`'..."
echo"error: cat release.txt in $MASTER_PATH did not produce a version."
echo
exit1
fi
echo"linux-minetest-kit VERSION=$VERSION"
cat <<END
# build via:
cd"$MASTER_PATH"
mtcompile-libraries.sh build
# or to give the program out (to do the later step and use the --makeprod option for creating a binary that will run on computers with different configurations), instead run: env DOBOOTSTRAP=1 ./mtcompile-libraries.sh build
# ^ new style suggested by Poikilos and implemented by OldCoder
fi
if[ -z "$DST_BG_VERSION"];then
echo"^ BE CAREFUL: The version is not known, so make a backup before doing this command!"
elif["x$DST_BG_VERSION" !="x$BG_VERSION"];then
echo"^ BEFORE PROCEEDING: The source version is $BG_VERSION but the destination version is '$DST_BG_VERSION', so make a backup before doing this command!"