mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-23 01:33:59 +08:00
17 lines
302 B
Bash
Executable File
17 lines
302 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check if the script is being run as root
|
|
if [ "$(id -u)" -ne 0 ]; then
|
|
echo "This script must be run as root or with sudo" >&2
|
|
exit 1
|
|
fi
|
|
|
|
rm -rf astyle
|
|
git clone https://github.com/lvgl/astyle.git
|
|
cd astyle/build/gcc
|
|
git checkout v3.4.12
|
|
make -j
|
|
make install
|
|
cd ../../..
|
|
rm -rf astyle
|