Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

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

Rev 25 Rev 26
Line 72... Line 72...
72
 
72
 
73
# are we running the Windows Subsystem for Linux, instead of a real Linux ?
73
# are we running the Windows Subsystem for Linux, instead of a real Linux ?
74
if [ -n "${WSL_DISTRO_NAME}" ]; then
74
if [ -n "${WSL_DISTRO_NAME}" ]; then
75
        # yes. In order to avoid the horrible 9p protocol for file interchange between NTFS and ext4 (a remarkably bad idea by Microsoft),
75
        # yes. In order to avoid the horrible 9p protocol for file interchange between NTFS and ext4 (a remarkably bad idea by Microsoft),
76
        # have a copy of $QNX_HOST and $QNX_TARGET in the WSL2 filesystem. The speed gain is considerable.
76
        # have a copy of $QNX_HOST and $QNX_TARGET in the WSL2 filesystem. The speed gain is considerable.
-
 
77
        # NOTE: we do this all over each time the mtime of these directories change, so BEWARE!
77
        if [ ! -d "/tmp/qnxsdk/${QNXSDK_HOSTPATH}" ]; then
78
        if [ ! -d "/tmp/qnxsdk/${QNXSDK_HOSTPATH}" ] || [ "${CURRENT_DIR}/${QNXSDK_PATH}/${QNXSDK_HOSTPATH}" -nt "/tmp/qnxsdk/${QNXSDK_HOSTPATH}" ]; then
78
                mkdir -p "$(dirname "/tmp/qnxsdk/${QNXSDK_HOSTPATH}")" 2>/dev/null
79
                mkdir -p "$(dirname "/tmp/qnxsdk/${QNXSDK_HOSTPATH}")" 2>/dev/null
79
                echo "Deploying QNX ${QNXSDK_VERSION} HOST SDK to WSL2 ext4 filesystem, please wait..."
80
                echo "Deploying QNX ${QNXSDK_VERSION} HOST SDK to WSL2 ext4 filesystem, please wait..."
80
                echo "This operation *WILL* take time, but is only done once - as long as your WSL filesystem is preserved."
81
                echo "This operation *WILL* take time, but is only done once - as long as your WSL filesystem is preserved."
81
                cp -R "${CURRENT_DIR}/${QNXSDK_PATH}/${QNXSDK_HOSTPATH}" "$(dirname "/tmp/qnxsdk/${QNXSDK_HOSTPATH}")" || exit 1
82
                cp -R "${CURRENT_DIR}/${QNXSDK_PATH}/${QNXSDK_HOSTPATH}" "$(dirname "/tmp/qnxsdk/${QNXSDK_HOSTPATH}")" || exit 1
82
        fi
83
        fi
83
        if [ ! -d "/tmp/qnxsdk/${QNXSDK_TARGETPATH}" ]; then
84
        if [ ! -d "/tmp/qnxsdk/${QNXSDK_TARGETPATH}" ] || [ "${CURRENT_DIR}/${QNXSDK_PATH}/${QNXSDK_TARGETPATH}" -nt "/tmp/qnxsdk/${QNXSDK_TARGETPATH}" ]; then
84
                mkdir -p "$(dirname "/tmp/qnxsdk/${QNXSDK_TARGETPATH}")" 2>/dev/null
85
                mkdir -p "$(dirname "/tmp/qnxsdk/${QNXSDK_TARGETPATH}")" 2>/dev/null
85
                echo "Deploying QNX ${QNXSDK_VERSION} TARGET SDK to WSL2 ext4 filesystem, please wait..."
86
                echo "Deploying QNX ${QNXSDK_VERSION} TARGET SDK to WSL2 ext4 filesystem, please wait..."
86
                echo "This operation *WILL* take time, but is only done once - as long as your WSL filesystem is preserved."
87
                echo "This operation *WILL* take time, but is only done once - as long as your WSL filesystem is preserved."
87
                cp -R "${CURRENT_DIR}/${QNXSDK_PATH}/${QNXSDK_TARGETPATH}" "$(dirname "/tmp/qnxsdk/${QNXSDK_TARGETPATH}")" || exit 1
88
                cp -R "${CURRENT_DIR}/${QNXSDK_PATH}/${QNXSDK_TARGETPATH}" "$(dirname "/tmp/qnxsdk/${QNXSDK_TARGETPATH}")" || exit 1
88
        fi
89
        fi