This repository has been archived by the owner on Sep 2, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pushd/popd like a pro when installing
- Loading branch information
1 parent
acf5e42
commit 374ca8e
Showing
1 changed file
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ set -o nounset | |
download_llvm(){ | ||
echo "Downloading and installing LLVM ${LLVM_VERSION}" | ||
|
||
cd /tmp | ||
wget "http://llvm.org/releases/${LLVM_VERSION}/clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-debian8.tar.xz" | ||
tar -xvf clang+llvm* | ||
pushd clang+llvm* && sudo mkdir /tmp/llvm && sudo cp -r ./* /tmp/llvm/ | ||
|
@@ -17,7 +16,6 @@ download_llvm(){ | |
download_pcre(){ | ||
echo "Downloading and building PCRE2..." | ||
|
||
cd /tmp | ||
wget "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.21.tar.bz2" | ||
tar -xjvf pcre2-10.21.tar.bz2 | ||
pushd pcre2-10.21 && ./configure --prefix=/usr && make && sudo make install | ||
|
@@ -26,7 +24,6 @@ download_pcre(){ | |
|
||
install-ponyc-master(){ | ||
echo "Installing ponyc master..." | ||
cd /tmp | ||
git clone [email protected]:WallarooLabs/ponyc.git | ||
cd ponyc | ||
echo "Building ponyc..." | ||
|
@@ -37,11 +34,11 @@ echo "Installing ponyc build dependencies..." | |
if [ "${TRAVIS_EVENT_TYPE}" = "cron" ] | ||
then | ||
echo -e "\033[0;32mInstalling ponyc master\033[0m" | ||
INSTALL_STARTED_AT=`pwd` | ||
pushd /tmp | ||
download_llvm | ||
download_pcre | ||
install-ponyc-master | ||
cd $INSTALL_STARTED_AT | ||
popd | ||
else | ||
echo -e "\033[0;32mInstalling latest ponyc release\033[0m" | ||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "8756 C4F7 65C9 AC3C B6B8 5D62 379C E192 D401 AB61" | ||
|