Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

Rev 22 | Rev 24 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22 Rev 23
Line 97... Line 97...
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)
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
cd "${STAGING_PATH}"
104
cd "${STAGING_PATH}"
103
 
105
 
104
# download the involved source packages and unpack them if not done yet
106
# download the involved source packages and unpack them if not done yet
105
download_and_unpack_if_necessary()
107
download_and_unpack_if_necessary()
106
{
108
{