mirror of
https://github.com/pleonex/NitroFilcher.git
synced 2025-06-19 05:35:37 -04:00
37 lines
833 B
Bash
Executable File
37 lines
833 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ ! -d "desmume" ]] ; then
|
|
# Checkout the desmume code if it doesn't exist
|
|
svn checkout svn://svn.code.sf.net/p/desmume/code/trunk desmume
|
|
cd desmume
|
|
else
|
|
# Update the current repo otherwise
|
|
cd desmume
|
|
svn update
|
|
fi
|
|
|
|
# Apply our patch
|
|
patch -p0 -i ../patch.diff
|
|
|
|
# Run the pre-steps
|
|
# Yes, there is a desmume folder inside the root folder
|
|
cd desmume
|
|
./autogen.sh
|
|
|
|
# Configure enabling debug
|
|
./configure --enable-debug --enable-developer
|
|
|
|
# Make
|
|
if [[ -z "$1" ]] ; then
|
|
make
|
|
else
|
|
make -j$1
|
|
fi
|
|
|
|
# We are not install but copying the executable
|
|
cd ../..
|
|
mkdir -p NitroFilcher/bin/Debug
|
|
mkdir -p NitroFilcher/bin/Release
|
|
cp desmume/desmume/src/gtk/desmume NitroFilcher/bin/Debug/desmume_nitrofilcher.exe
|
|
cp desmume/desmume/src/gtk/desmume NitroFilcher/bin/Release/desmume_nitrofilcher.exe
|