mirror of https://github.com/PCSX2/pcsx2.git
Add a few scripts for convenience.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@455 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
parent
13fa966fa5
commit
93a4efc619
|
@ -0,0 +1,38 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Usage: sh build.sh [option]
|
||||
# option can be all (rebuilds everything), clean, or nothing (incremental build)
|
||||
# Modify the individual build.sh for specific program options like debug symbols
|
||||
# Uncomment if building by itself, rather then with all the plugins
|
||||
|
||||
#Normal
|
||||
export PCSX2OPTIONS="--enable-sse3 --enable-sse4 --prefix `pwd`"
|
||||
|
||||
|
||||
#Optimized, but a devbuild
|
||||
#export PCSX2OPTIONS="--enable-sse3 --enable-sse4 --enable-devbuild --prefix `pwd`"
|
||||
|
||||
#Debug / Devbuild version
|
||||
#export PCSX2OPTIONS="--enable-debug --enable-devbuild --enable-sse3 --prefix `pwd`"
|
||||
|
||||
|
||||
export PCSX2PLUGINS="`pwd`/bin/plugins"
|
||||
curdir=`pwd`
|
||||
|
||||
cd ${curdir}/plugins
|
||||
sh build.sh $@
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo Error with building plugins
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ${curdir}/pcsx2
|
||||
sh build.sh $@
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo Error with building pcsx2
|
||||
exit 1
|
||||
fi
|
|
@ -17,13 +17,6 @@
|
|||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
#
|
||||
|
||||
# Uncomment if building by itself, rather then with all the plugins
|
||||
|
||||
#Normal
|
||||
export PCSX2OPTIONS="--enable-sse3 --prefix `pwd`"
|
||||
#Debug version
|
||||
#export PCSX2OPTIONS="--enable-debug --enable-devbuild --enable-sse3 --prefix `pwd`"
|
||||
|
||||
echo ---------------
|
||||
echo Building Pcsx2
|
||||
echo ---------------
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
curdir=`pwd`
|
||||
|
||||
function buildplugin {
|
||||
cd ${curdir}/$1
|
||||
sh build.sh $2
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
buildplugin gs $@
|
||||
buildplugin cdvd $@
|
||||
buildplugin dev9 $@
|
||||
buildplugin fw $@
|
||||
buildplugin pad $@
|
||||
buildplugin spu2 $@
|
||||
buildplugin usb $@
|
|
@ -0,0 +1,79 @@
|
|||
#!/bin/sh
|
||||
# Convenience script for obtaining plugins,
|
||||
# Use at your own risk. Assumes that it is being run in the plugin directory.
|
||||
|
||||
#Running this script should do the following:
|
||||
#1) Check to see if the 6 needed plugin folders exist in the current directory.
|
||||
#2) If they aren't. create a temp directory, download the plugins to it from
|
||||
# the official pcsx2 svn, move them into the plugin directory, and then delete
|
||||
# the temp directory.
|
||||
|
||||
#3) Check for copies of certain plugins in the current directory, and copy them to
|
||||
# the right place if they exist, assuming that they are modified copies of those plugins.
|
||||
|
||||
curdir=`pwd`
|
||||
PLUGINDIRS="gs cdvd dev9 fw pad spu2 usb"
|
||||
|
||||
if [ -d "gs" ] & [ -d "cdvd" ] & [ -d "dev9" ] & [ -d "fw" ] & [ -d "pad" ] & [ -d "spu2" ] & [ -d "usb" ]
|
||||
then
|
||||
echo "Plugin directories already present."
|
||||
else
|
||||
echo "Checking plugins out from official Pcsx2 svn..."
|
||||
mkdir "temp"
|
||||
|
||||
if [ -d "temp" ]
|
||||
cd "temp"
|
||||
svn checkout http://pcsx2.googlecode.com/svn/trunk/plugins ./
|
||||
|
||||
echo "Copying..."
|
||||
for i in $PLUGINDIRS; do
|
||||
mv $i ../
|
||||
done
|
||||
cd ..
|
||||
rm -rf ./temp/
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if [ -d zerogs ]
|
||||
then
|
||||
echo "Importing local copy of zerogs..."
|
||||
rm -rf ./gs/zerogs
|
||||
cp -r zerogs ./gs/
|
||||
fi
|
||||
|
||||
if [ -d zerospu2 ]
|
||||
then
|
||||
echo "Importing local copy of zerospu2..."
|
||||
rm -rf ./spu2/zerospu2
|
||||
cp -r zerospu2 ./spu2/
|
||||
fi
|
||||
|
||||
if [ -d zeropad ]
|
||||
then
|
||||
echo "Importing local copy of zeropad..."
|
||||
rm -rf ./pad/zeropad
|
||||
cp -r zeropad ./pad/
|
||||
fi
|
||||
|
||||
if [ -d CDVDlinuz ]
|
||||
then
|
||||
echo "Importing local copy of CDVDlinuz.."
|
||||
rm -rf ./cdvd/CDVDlinuz
|
||||
cp -r CDVDlinuz ./cdvd/
|
||||
fi
|
||||
|
||||
if [ -d CDVDisoEFP ]
|
||||
then
|
||||
echo "Importing local copy of CDVDisoEFP.."
|
||||
rm -rf ./cdvd/CDVDisoEFP
|
||||
cp -r CDVDisoEFP ./cdvd/
|
||||
fi
|
||||
|
||||
if [ -d PeopsSPU2 ]
|
||||
then
|
||||
echo "Importing local copy of PeopsSPU2.."
|
||||
rm -rf ./spu2/PeopsSPU2
|
||||
cp -r PeopsSPU2 ./spu2/
|
||||
fi
|
||||
|
Loading…
Reference in New Issue