1#!/bin/sh
2
3# Check if the script is being run as root
4if [ "$(id -u)" -ne 0 ]; then
5  echo "This script must be run as root or with sudo" >&2
6  exit 1
7fi
8
9rm -rf astyle
10git clone https://github.com/lvgl/astyle.git
11cd astyle/build/gcc
12git checkout v3.4.12
13make -j
14make install
15cd ../../..
16rm -rf astyle
17