mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Extract archive directly to destination filesystem
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user