1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Fix shellcheck errors

This commit is contained in:
Zion Nimchuk 2022-07-16 12:10:50 -07:00 committed by Ivan
parent de613a8a98
commit 189499c10b
2 changed files with 12 additions and 12 deletions

View File

@ -1,9 +1,9 @@
#!/bin/sh -ex #!/bin/sh -ex
# Setup Qt variables # Setup Qt variables
export QT_BASE_DIR=/opt/qt${QTVERMIN} export QT_BASE_DIR=/opt/qt"${QTVERMIN}"
export PATH=$QT_BASE_DIR/bin:$PATH export PATH="$QT_BASE_DIR"/bin:"$PATH"
export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib export LD_LIBRARY_PATH="$QT_BASE_DIR"/lib/x86_64-linux-gnu:"$QT_BASE_DIR"/lib
if [ -z "$CIRRUS_CI" ]; then if [ -z "$CIRRUS_CI" ]; then
cd rpcs3 || exit 1 cd rpcs3 || exit 1
@ -23,19 +23,19 @@ mkdir build && cd build || exit 1
if [ "$COMPILER" = "gcc" ]; then if [ "$COMPILER" = "gcc" ]; then
# These are set in the dockerfile # These are set in the dockerfile
export CC=${GCC_BINARY} export CC="${GCC_BINARY}"
export CXX=${GXX_BINARY} export CXX="${GXX_BINARY}"
export LINKER=gold export LINKER=gold
# We need to set the following variables for LTO to link properly # We need to set the following variables for LTO to link properly
export AR=/usr/bin/gcc-ar-$GCCVER export AR=/usr/bin/gcc-ar-"$GCCVER"
export RANLIB=/usr/bin/gcc-ranlib-$GCCVER export RANLIB=/usr/bin/gcc-ranlib-"$GCCVER"
export CFLAGS="-fuse-linker-plugin" export CFLAGS="-fuse-linker-plugin"
else else
export CC=${CLANG_BINARY} export CC="${CLANG_BINARY}"
export CXX=${CLANGXX_BINARY} export CXX="${CLANGXX_BINARY}"
export LINKER=lld export LINKER=lld
export AR=/usr/bin/llvm-ar-$LLVMVER export AR=/usr/bin/llvm-ar-"$LLVMVER"
export RANLIB=/usr/bin/llvm-ranlib-$LLVMVER export RANLIB=/usr/bin/llvm-ranlib-"$LLVMVER"
fi fi
export CFLAGS="$CFLAGS -fuse-ld=${LINKER}" export CFLAGS="$CFLAGS -fuse-ld=${LINKER}"

View File

@ -13,7 +13,7 @@ if [ "$DEPLOY_APPIMAGE" = "true" ]; then
ls ./appdir/usr/lib/ ls ./appdir/usr/lib/
rm -r ./appdir/usr/share/doc rm -r ./appdir/usr/share/doc
cp "$(readlink -f /lib/x86_64-linux-gnu/libnsl.so.1)" ./appdir/usr/lib/libnsl.so.1 cp "$(readlink -f /lib/x86_64-linux-gnu/libnsl.so.1)" ./appdir/usr/lib/libnsl.so.1
export PATH=/rpcs3/build/squashfs-root/usr/bin/:${PATH} export PATH=/rpcs3/build/squashfs-root/usr/bin/:"${PATH}"
# Embed newer libstdc++ for distros that don't come with it (ubuntu 16.04) # Embed newer libstdc++ for distros that don't come with it (ubuntu 16.04)
mkdir -p appdir/usr/optional/ ; mkdir -p appdir/usr/optional/libstdc++/ mkdir -p appdir/usr/optional/ ; mkdir -p appdir/usr/optional/libstdc++/