Commit 348bf5e0 authored by Angus Ainslie's avatar Angus Ainslie Committed by Angus Ainslie (Purism)
Browse files

build_uuu.sh : add a script to download, build and optionally install uuu

parent a32ab19f
#!/bin/bash
#
# pre-requisits 'libusb-1.0-0-dev libzip-dev'
usage() {
echo "Usage : $1 "
echo " -i install uuu as well"
}
cwd=$(pwd)
install_uuu=0
while getopts "hi" opt; do
case ${opt} in
i)
install_uuu=1
;;
\?)
echo "Invalid Option: -$OPTARG" 1>&2
usage "$0"
exit 0
;;
h )
usage "$0"
exit 0
;;
esac
done
CWD=`pwd`
mkdir -p build
cd build
git clone https://source.puri.sm/Librem5/mfgtools
cd mfgtools
cmake ./
make
if [ "${install_uuu}" == 1 ]; then
sudo make install
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment