mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Fix shellcheck issues
This commit is contained in:
parent
0b6af6dbd2
commit
8d08f18349
|
@ -1,22 +1,22 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
MGBA_VERSION=$1
|
MGBA_VERSION=$1
|
||||||
OUT_DIRECTORY=$2
|
OUT_DIRECTORY=$2
|
||||||
CURRENT_DIRECTORY=$(pwd)
|
CURRENT_DIRECTORY=$(pwd)
|
||||||
|
|
||||||
cd ${OUT_DIRECTORY}
|
cd "${OUT_DIRECTORY}" || exit
|
||||||
|
|
||||||
if [[ -f libmgba-cycle.a ]]; then
|
if [[ -f libmgba-cycle.a ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -L https://github.com/mgba-emu/mgba/archive/refs/tags/${MGBA_VERSION}.tar.gz -o mgba-${MGBA_VERSION}.tar.gz
|
curl -L "https://github.com/mgba-emu/mgba/archive/refs/tags/${MGBA_VERSION}.tar.gz" -o "mgba-${MGBA_VERSION}.tar.gz"
|
||||||
tar -xvf mgba-${MGBA_VERSION}.tar.gz
|
tar -xvf "mgba-${MGBA_VERSION}.tar.gz"
|
||||||
cd mgba-${MGBA_VERSION}
|
cd "mgba-${MGBA_VERSION}" || exit
|
||||||
rm -rf build
|
rm -rf build
|
||||||
patch --strip=1 < ${CURRENT_DIRECTORY}/add_cycles_register.patch
|
patch --strip=1 < "${CURRENT_DIRECTORY}/add_cycles_register.patch"
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build || exit
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DBUILD_STATIC=ON \
|
-DBUILD_STATIC=ON \
|
||||||
-DBUILD_SHARED=OFF \
|
-DBUILD_SHARED=OFF \
|
||||||
|
|
Loading…
Reference in a new issue