21 γραμμές
305 B
Bash
21 γραμμές
305 B
Bash
#!/bin/bash
|
|
|
|
# clone mercury repo
|
|
git clone --depth 1 https://github.com/kgaughan/mercury.git mercury_git
|
|
|
|
# apply patches
|
|
cd mercury
|
|
|
|
for p in ../patches/*.patch; do
|
|
git apply ${p}
|
|
done
|
|
|
|
# build
|
|
make build
|
|
if [ -e mercury ]; then
|
|
mv mercury ../
|
|
else
|
|
exit 1
|
|
fi
|
|
|
|
./mercury --config planet.toml
|