update some stuff

This commit is contained in:
apio 2022-07-19 15:17:00 +02:00
parent af0fb223be
commit a3fc4c3f32
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ usage()
echo "Sapphire utility script" echo "Sapphire utility script"
echo "-----------------------" echo "-----------------------"
echo "sapphire.sh build <config>: build the project" echo "sapphire.sh build <config>: build the project"
echo "sapphire.sh generate <generator>: regenerate build files" echo "sapphire.sh generate <generator> <config>: regenerate build files"
echo "sapphire.sh format: run clang-format on source files" echo "sapphire.sh format: run clang-format on source files"
echo "sapphire.sh clean: clean build files" echo "sapphire.sh clean: clean build files"
echo "sapphire.sh install <path>: install the project" echo "sapphire.sh install <path>: install the project"
@ -14,7 +14,7 @@ usage()
case $1 in case $1 in
"build") tools/build.sh "$2";; "build") tools/build.sh "$2";;
"generate") tools/generate.sh "$2";; "generate") tools/generate.sh "$2" "$3";;
"format") tools/format.sh;; "format") tools/format.sh;;
"clean") rm -rf build;; "clean") rm -rf build;;
"install") tools/install.sh "$2";; "install") tools/install.sh "$2";;

View File

@ -1 +1 @@
cmake --build build --config $1 cmake --build build --config "${1:-Debug}"

View File

@ -3,4 +3,4 @@ then
mkdir build mkdir build
fi fi
cmake -S . -B build -G "${1:-Ninja}" cmake -S . -B build -G "${1:-Ninja}" --config "${2:-Debug}"