Fix scripts

Fix scripts

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2021-08-26 18:22:59 +02:00
parent 5eee846afc
commit b084b03655
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ if (( $# >= 1 )); then
chmod +x ./dockcross-"$image" chmod +x ./dockcross-"$image"
echo "Build $build_file" echo "Build $build_file"
./dockcross-"$image" cmake -B "$build_file" -S . -G Ninja "$cmake_arg" ./dockcross-"$image" cmake -B "$build_file" -S . -G Ninja $cmake_arg
./dockcross-"$image" ninja -C "$build_file" ./dockcross-"$image" ninja -C "$build_file"
else else
echo "Usage: ${0##*/} <docker imag (ex: linux-x64/linux-x64-clang/linux-arm64/windows-shared-x64/windows-static-x64...)> <cmake arg.>" echo "Usage: ${0##*/} <docker imag (ex: linux-x64/linux-x64-clang/linux-arm64/windows-shared-x64/windows-static-x64...)> <cmake arg.>"

View File

@ -15,7 +15,7 @@ if (( $# >= 2 )); then
chmod +x ./dockcross-"$image" chmod +x ./dockcross-"$image"
echo "Run command in dockcross-$image" echo "Run command in dockcross-$image"
./dockcross-"$image" "$command" ./dockcross-"$image" $command
else else
echo "Usage: ${0##*/} <docker imag (ex: linux-x64/linux-x64-clang/linux-arm64/windows-shared-x64/windows-static-x64...)> <command>" echo "Usage: ${0##*/} <docker imag (ex: linux-x64/linux-x64-clang/linux-arm64/windows-shared-x64/windows-static-x64...)> <command>"
exit 1 exit 1

View File

@ -16,7 +16,7 @@ if (( $# >= 1 )); then
chmod +x ./dockcross-"$image" chmod +x ./dockcross-"$image"
echo "Build $build_file" echo "Build $build_file"
./dockcross-"$image" bash -c 'make CXX=${CXX} CC=${CC} AR=${AR} AS=${AS} LD=${LD} CPP=${CPP} FC=${FC} ' "$make_arg" ./dockcross-"$image" bash -c 'make CXX=${CXX} CC=${CC} AR=${AR} AS=${AS} LD=${LD} CPP=${CPP} FC=${FC}' $make_arg
else else
echo "Usage: ${0##*/} <docker imag (ex: linux-x64/linux-x64-clang/linux-arm64/windows-shared-x64/windows-static-x64...)> <make arg.>" echo "Usage: ${0##*/} <docker imag (ex: linux-x64/linux-x64-clang/linux-arm64/windows-shared-x64/windows-static-x64...)> <make arg.>"
exit 1 exit 1