Rev 23 | Rev 25 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 23 | Rev 24 | ||
---|---|---|---|
Line 95... | Line 95... | ||
95 | export TARGET_KERNEL="nto" |
95 | export TARGET_KERNEL="nto" |
96 | export TARGET_SYSTEM="qnx${QNXSDK_VERSION}" |
96 | export TARGET_SYSTEM="qnx${QNXSDK_VERSION}" |
97 | export TARGET_TRIPLE="${TARGET_ARCH}-${TARGET_VENDOR}-${TARGET_KERNEL}-${TARGET_SYSTEM}" |
97 | export TARGET_TRIPLE="${TARGET_ARCH}-${TARGET_VENDOR}-${TARGET_KERNEL}-${TARGET_SYSTEM}" |
98 | echo "Will build for ${TARGET_TRIPLE}" |
98 | echo "Will build for ${TARGET_TRIPLE}" |
99 | 99 | ||
100 | # change to an immediately visible path, i.e. the user's desktop (failsafe to $HOME if xdg-user-dir is unavailable) |
100 | # change to an immediately visible path, i.e. the user's desktop (failsafe to $HOME if xdg-user-dir is unavailable or points to a nonexistent directory) |
101 | STAGING_PATH="$(xdg-user-dir DESKTOP 2>/dev/null || echo "${HOME}")" |
101 | STAGING_PATH="$(xdg-user-dir DESKTOP 2>/dev/null || echo "${HOME}")" |
102 | # second check for WSL which defines xdg-user-dir DESKTOP to a nonexistent directory. Ahhh, Microsoft... |
- | |
103 | test -d "${STAGING_PATH}" || STAGING_PATH="${HOME}" |
102 | test -d "${STAGING_PATH}" || STAGING_PATH="${HOME}" |
104 | cd "${STAGING_PATH}" |
103 | cd "${STAGING_PATH}" |
105 | 104 | ||
106 | # download the involved source packages and unpack them if not done yet |
105 | # download the involved source packages and unpack them if not done yet |
107 | download_and_unpack_if_necessary() |
106 | download_and_unpack_if_necessary() |