5 SRC_DIR=$(dirname $(rustup which rustc))"/../lib/rustlib/src/rust/"
8 if [ ! -e $SRC_DIR ]; then
9 echo "Please install rust-src component"
15 cp -r $SRC_DIR/src $DST_DIR/
23 git commit -m "Initial commit" -q
24 for file in $(ls ../../patches/ | grep -v patcha); do
25 echo "[GIT] apply" $file
26 git apply ../../patches/$file
27 git commit --no-gpg-sign -am "Patch $file"
31 echo "Successfully prepared libcore for building"