2018-07-19 11:41:37 -05:00
|
|
|
#!/bin/bash --verbose
|
2018-09-18 11:41:41 -05:00
|
|
|
set -e
|
|
|
|
|
2018-07-19 11:41:37 -05:00
|
|
|
SRC_DIR="target/libcore"
|
2018-09-18 11:41:41 -05:00
|
|
|
rm -rf $SRC_DIR
|
|
|
|
mkdir -p $SRC_DIR/src
|
2018-07-19 11:41:37 -05:00
|
|
|
cp -r $(dirname $(rustup which rustc))/../lib/rustlib/src/rust/src/libcore $SRC_DIR/src/libcore || (echo "Please install rust-src component"; exit 1)
|
2018-09-18 11:41:41 -05:00
|
|
|
cd $SRC_DIR
|
|
|
|
git init
|
|
|
|
git add .
|
|
|
|
git commit -m "Initial commit" -q
|
|
|
|
git apply ../../000*.patch
|
|
|
|
|
2018-07-19 11:41:37 -05:00
|
|
|
echo "Successfully prepared libcore for building"
|