New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update install script #411
Changes from 1 commit
1b8c1d1
3b6e2b6
1cbf035
5556899
70c3641
25cd287
435a4c9
ce4e0cb
310bd34
9f635c2
701b24c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if [ -z ${CLANG_VERSION+x} ]; then | ||
echo "CLANG_VERSOIN is empty. skip install clang..." | ||
return | ||
fi | ||
|
||
. /etc/os-release | ||
wget -qO - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | ||
add-apt-repository -y 'deb http://apt.llvm.org/${VERSION_CODENAME}/ llvm-toolchain-${VERSION_CODENAME}-${CLANG_VERSION} main' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
apt-get -y --allow-unauthenticated update | ||
apt-get -qq install clang-${CLANG_VERSION} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
|
||
if $INSATLL_CLANG_TOOLS; then | ||
apt-get -y --force-yes -qq install clang-$CLANG_VERSION clang-tools-$CLANG_VERSION | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
CLANG_SLAVES="--slave /usr/bin/scan-build scan-build /usr/bin/scan-build-$CLANG_VERSION" | ||
fi | ||
|
||
update-alternatives --install /usr/bin/clang clang \ | ||
/usr/bin/clang-${CLANG_VERSION} 360 \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
${CLANG_SLAVES} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if [ -z ${GCC_VERSION+x} ]; then | ||
echo "GCC_VERSION is empty. skip install gcc..." | ||
return | ||
fi | ||
|
||
add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
apt-get -y --allow-unauthenticated update | ||
apt-get -qq install g++-${GCC_VERSION} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
update-alternatives --install /usr/bin/gcc gcc \ | ||
/usr/bin/gcc-${GCC_VERSION} 90 \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
--slave /usr/bin/g++ g++ /usr/bin/g++-${GCC_VERSION} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Misspell] "VERSOIN" is a misspelling of "VERSION" (view)
"VERSOIN" is a misspelling of "VERSION"
You can mark this issue as closed if you should not tackle it. (see our document about issues)