Skip to content

Commit

Permalink
Extract archive directly to destination filesystem
Browse files Browse the repository at this point in the history
Save some seconds or even minutes during provisioning, by avoiding copying
many files across filesystems, from /tmp to /usr/local. We now install
directly to /usr/local.

Change-Id: I3a8f545f1400995095193c4eb337f9dd8534ef72
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
  • Loading branch information
jimis committed Feb 15, 2020
1 parent fc2d0b5 commit 2693e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coin/provisioning/common/unix/libclang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ zip="/tmp/libclang.7z"
destination="/usr/local/libclang-$version"

DownloadURL $url_cached $url $sha1 $zip
7z x $zip -o/tmp/
sudo 7z x $zip -o/usr/local/
sudo mv /usr/local/libclang "$destination"
rm -rf $zip

sudo mv /tmp/libclang "$destination"

echo "export LLVM_INSTALL_DIR=$destination" >> ~/.bash_profile
echo "libClang = $version" >> ~/versions.txt
Expand Down

0 comments on commit 2693e48

Please sign in to comment.