don't rebuild if file exists

This commit is contained in:
Corwin 2022-02-22 23:36:46 +00:00
parent 0f4cbc8e09
commit c7a7034618

View file

@ -5,6 +5,11 @@ OUT_DIRECTORY=$2
CURRENT_DIRECTORY=$(pwd) CURRENT_DIRECTORY=$(pwd)
cd ${OUT_DIRECTORY} cd ${OUT_DIRECTORY}
if [[ -f libmgba-cycle.a ]]; then
exit 0
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}