update some stuff
This commit is contained in:
parent
af0fb223be
commit
a3fc4c3f32
@ -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";;
|
||||||
|
@ -1 +1 @@
|
|||||||
cmake --build build --config $1
|
cmake --build build --config "${1:-Debug}"
|
@ -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}"
|
Loading…
Reference in New Issue
Block a user