summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Sarajärvi <tony.sarajarvi@qt.io>2018-01-06 20:24:01 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2018-01-09 19:20:44 +0000
commit1c1557aa93cd139688ebfe5a9922a60ef2b2d8c6 (patch)
tree4143ec335c0e787efce5d83c801c8df20ad396c3
parent5f022e578593ccd64d438976f22140c264864362 (diff)
Provisioning: Set CMake to PATH on Ubuntu
Ubuntu uses .profile file instead of .bashrc. We need to use the correct file accordingly. Task-number: QTBUG-65594 (cherry picked from commit 22e4664eb08dc5384c5afd0bd6c6a0725b242517) Change-Id: Iceeec53882f1a5c97cd8f7ea5b013d543c156acb Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
-rwxr-xr-xcoin/provisioning/common/cmake_linux.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/coin/provisioning/common/cmake_linux.sh b/coin/provisioning/common/cmake_linux.sh
index 35313d3c..3efe35a0 100755
--- a/coin/provisioning/common/cmake_linux.sh
+++ b/coin/provisioning/common/cmake_linux.sh
@@ -50,4 +50,8 @@ appPrefix="cmake-$version-Linux-x86_64"
InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$targetFolder" "$appPrefix"
echo "Adding $targetFolder/bin to PATH"
-echo "export PATH=$targetFolder/bin:\$PATH" >> ~/.bashrc
+if uname -a |grep -q "Ubuntu"; then
+ echo "export PATH=$targetFolder/bin:\$PATH" >> ~/.profile
+else
+ echo "export PATH=$targetFolder/bin:\$PATH" >> ~/.bashrc
+fi