You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jade_gui/build.sh

28 lines
544 B
Bash

#!/usr/bin/env bash
if [[ $1 == "build" ]]; then
if [[ ! -d "build" ]]; then
meson build
else
meson --reconfigure build
fi
ninja -C build
elif [[ $1 == "install" ]]; then
pushd build
sudo ninja install
elif [[ $1 == "build-install" ]]; then
if [[ ! -d "build" ]]; then
meson build
else
meson --reconfigure build
fi
ninja -C build
pushd build
sudo ninja install
else
echo "Unkown command $1"
echo "usage:"
echo "build build jade gui"
echo "install install jade gui"
echo "build-install build and install jade_gui"
fi