Merge pull request #8 from cyplo/rust_submodules
Fetch rust sources recursively
This commit is contained in:
commit
a78dc4a9d2
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -v
|
|
||||||
echo
|
echo
|
||||||
echo "configuring settings common among OSes"
|
echo "configuring settings common among OSes"
|
||||||
sudo true
|
sudo true
|
||||||
|
@ -83,10 +82,11 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
|
||||||
cd "$DIR/../"
|
cd "$DIR/../"
|
||||||
echo "getting rust sources..."
|
echo "getting rust sources..."
|
||||||
if [[ ! -d rust ]]; then
|
if [[ ! -d rust ]]; then
|
||||||
git clone https://github.com/rust-lang/rust.git
|
git clone https://github.com/rust-lang/rust.git --recursive
|
||||||
else
|
else
|
||||||
cd rust
|
cd rust
|
||||||
git pull
|
git pull
|
||||||
|
git submodule update --init --recursive
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cargo install -f rustfmt
|
cargo install -f rustfmt
|
||||||
|
|
Loading…
Reference in a new issue