aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-10-26 14:23:49 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-10-26 14:23:49 +0200
commit9153bfcb3aa35af500be29e5b091312ded5912c9 (patch)
tree3f706242b82889a6180e54629c0de8df9b906ff0
parenta827158c818e4406e98e533d8e37f6b21bf90060 (diff)
Ability to change the ROOT_PATH via env.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rwxr-xr-xmingw-w64-build3
1 files changed, 2 insertions, 1 deletions
diff --git a/mingw-w64-build b/mingw-w64-build
index c908179..4c8ce5b 100755
--- a/mingw-w64-build
+++ b/mingw-w64-build
@@ -16,7 +16,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-ROOT_PATH="$HOME/.zeranoe/mingw-w64"
+ROOT_PATH="${ROOT_PATH:-$HOME/.zeranoe/mingw-w64}"
+ROOT_PATH="$(realpath ${ROOT_PATH})"
SRC_PATH="$ROOT_PATH/src"
BLD_PATH="$ROOT_PATH/bld"
LOG_FILE="$ROOT_PATH/build.log"