mirror of
https://github.com/pleonex/NitroFilcher.git
synced 2025-06-18 21:25:34 -04:00
Accept the patch file from argument
This commit is contained in:
parent
1336b2c7b5
commit
f8ba06c619
@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z "$1" ]] ; then
|
||||
echo "The first argument must be the relative path to the patch to apply."
|
||||
exit -1
|
||||
fi
|
||||
|
||||
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
|
||||
@ -11,7 +16,7 @@ else
|
||||
fi
|
||||
|
||||
# Apply our patch
|
||||
patch -p0 -i ../patch.diff
|
||||
patch -p0 -i ../"$1"
|
||||
|
||||
# Run the pre-steps
|
||||
# Yes, there is a desmume folder inside the root folder
|
||||
@ -22,10 +27,10 @@ cd desmume
|
||||
./configure --enable-debug --enable-developer
|
||||
|
||||
# Make
|
||||
if [[ -z "$1" ]] ; then
|
||||
if [[ -z "$2" ]] ; then
|
||||
make
|
||||
else
|
||||
make -j$1
|
||||
make -j$2
|
||||
fi
|
||||
|
||||
# We are not install but copying the executable
|
||||
|
Loading…
Reference in New Issue
Block a user