dist-scripts - refactors

This commit is contained in:
twinaphex 2015-09-01 16:51:17 +02:00
parent 259b3e9e0f
commit a1881e7e71
9 changed files with 100 additions and 100 deletions

View File

@ -1,11 +1,11 @@
#!/bin/sh
PLATFORM=ngc
platform=ngc
make -C ../ -f Makefile.griffin platform=${PLATFORM} clean || exit 1
make -C ../ -f Makefile.griffin platform=${platform} clean || exit 1
for f in *_${PLATFORM}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).a$//"`
for f in *_${platform}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${platform}\|\).a$//"`
whole_archive=
big_stack=
if [ $name = "nxengine" ] ; then
@ -16,8 +16,8 @@ for f in *_${PLATFORM}.a ; do
echo "Tyrquake found, applying big stack..."
big_stack="BIG_STACK=1"
fi
cp -f "$f" ../libretro_${PLATFORM}.a
make -C ../ -f Makefile.griffin platform=${PLATFORM} $whole_archive $big_stack -j3 || exit 1
mv -f ../retroarch_${PLATFORM}.dol ../pkg/${PLATFORM}/${name}_libretro_${PLATFORM}.dol
rm -f ../retroarch_${PLATFORM}.dol ../retroarch_${PLATFORM}.elf ../retroarch_${PLATFORM}.elf.map
cp -f "$f" ../libretro_${platform}.a
make -C ../ -f Makefile.griffin platform=${platform} $whole_archive $big_stack -j3 || exit 1
mv -f ../retroarch_${platform}.dol ../pkg/${platform}/${name}_libretro_${platform}.dol
rm -f ../retroarch_${platform}.dol ../retroarch_${platform}.elf ../retroarch_${platform}.elf.map
done

View File

@ -1,31 +1,31 @@
#!/bin/sh
RARCH_VERSION=1.2.2
PLATFORM=ps3
platform=ps3
make -C ../ -f Makefile.${PLATFORM}.salamander clean || exit 1
make -C ../ -f Makefile.${PLATFORM} clean || exit 1
make -C ../ -f Makefile.${platform}.salamander clean || exit 1
make -C ../ -f Makefile.${platform} clean || exit 1
make -C ../ -f Makefile.${PLATFORM}.salamander || exit 1
make -C ../ -f Makefile.${platform}.salamander || exit 1
EXE_PATH=/usr/local/cell/host-win32/bin
for f in *_${PLATFORM}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).a$//"`
for f in *_${platform}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${platform}\|\).a$//"`
whole_archive=
if [ $name = "nxengine" ] ; then
echo "Applying whole archive linking..."
whole_archive="WHOLE_ARCHIVE_LINK=1"
fi
echo $name yes
cp -f "$f" ../libretro_${PLATFORM}.a
make -C ../ -f Makefile.${PLATFORM} $whole_archive -j3 || exit 1
make_self_wc ../retroarch_${PLATFORM}.elf ../CORE.SELF
mv -f ../CORE.SELF ../pkg/${PLATFORM}/USRDIR/cores/"${name}_libretro_${PLATFORM}.SELF"
rm -f ../retroarch_${PLATFORM}.elf ../retroarch_${PLATFORM}.self ../CORE.SELF
cp -f "$f" ../libretro_${platform}.a
make -C ../ -f Makefile.${platform} $whole_archive -j3 || exit 1
make_self_wc ../retroarch_${platform}.elf ../CORE.SELF
mv -f ../CORE.SELF ../pkg/${platform}/USRDIR/cores/"${name}_libretro_${platform}.SELF"
rm -f ../retroarch_${platform}.elf ../retroarch_${platform}.self ../CORE.SELF
done
make -C ../ -f Makefile.shaders deploy-ps3
make_self_wc ../retroarch-salamander_${PLATFORM}.elf ../pkg/${PLATFORM}/USRDIR/EBOOT.BIN
rm -rf ../retroarch-salamander_${PLATFORM}.elf
python2 ../ps3/ps3py/pkg.py --contentid UP0001-SSNE10000_00-0000000000000001 ../pkg/${PLATFORM} retroarch-${PLATFORM}-cfw-$RARCH_VERSION.pkg
make_self_wc ../retroarch-salamander_${platform}.elf ../pkg/${platform}/USRDIR/EBOOT.BIN
rm -rf ../retroarch-salamander_${platform}.elf
python2 ../ps3/ps3py/pkg.py --contentid UP0001-SSNE10000_00-0000000000000001 ../pkg/${platform} retroarch-${platform}-cfw-$RARCH_VERSION.pkg

View File

@ -1,36 +1,36 @@
#!/bin/sh
#For this script to work correctly, you must place the "data" folder containing your ps3 keys for scetool to use in the dist-scripts folder.
PLATFORM=ps3
platform=ps3
make -C ../ -f Makefile.${PLATFORM}.salamander clean || exit 1
make -C ../ -f Makefile.${PLATFORM}.cobra clean || exit 1
make -C ../ -f Makefile.${platform}.salamander clean || exit 1
make -C ../ -f Makefile.${platform}.cobra clean || exit 1
make -C ../ -f Makefile.${PLATFORM}.salamander || exit 1
make -C ../ -f Makefile.${platform}.salamander || exit 1
GENPS3ISO_PATH=/cygdrive/c/Cobra_ODE_GenPS3iso_v2.3/genps3iso.exe
SCETOOL_PATH=/cygdrive/c/Users/aaa801/ps3tools/ps3tools/tools/scetool/scetool.exe
SCETOOL_FLAGS="--sce-type SELF --compress-data FALSE --self-type APP --key-revision 0004 --self-fw-version 0003004100000000 --self-app-version 0001000000000000 --self-auth-id 1010000001000003 --self-vendor-id 01000002 --self-cap-flags 00000000000000000000000000000000000000000000003b0000000100040000"
for f in *_${PLATFORM}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).a$//"`
for f in *_${platform}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${platform}\|\).a$//"`
whole_archive=
if [ $name = "nxengine" ] ; then
echo "NXEngine found, applying whole archive linking..."
whole_archive="WHOLE_ARCHIVE_LINK=1"
echo $name yes
fi
cp -f "$f" ../libretro_${PLATFORM}.a
make -C ../ -f Makefile.${PLATFORM}.cobra $whole_archive -j3 || exit 1
$SCETOOL_PATH $SCETOOL_FLAGS --encrypt ../retroarch_${PLATFORM}.elf ../CORE.SELF
mv -f ../CORE.SELF ../${PLATFORM}/iso/PS3_GAME/USRDIR/cores/"${name}_libretro_${PLATFORM}.SELF"
rm -f ../retroarch_${PLATFORM}.elf ../retroarch_${PLATFORM}.self ../CORE.SELF
cp -f "$f" ../libretro_${platform}.a
make -C ../ -f Makefile.${platform}.cobra $whole_archive -j3 || exit 1
$SCETOOL_PATH $SCETOOL_FLAGS --encrypt ../retroarch_${platform}.elf ../CORE.SELF
mv -f ../CORE.SELF ../${platform}/iso/PS3_GAME/USRDIR/cores/"${name}_libretro_${platform}.SELF"
rm -f ../retroarch_${platform}.elf ../retroarch_${platform}.self ../CORE.SELF
done
cp -r ../media/rmenu/*.png ../ps3/iso/PS3_GAME/USRDIR/cores/borders/Menu/
make -C ../ -f Makefile.griffin platform=${PLATFORM}-cobra shaders-deploy
make -C ../ -f Makefile.griffin platform=${platform}-cobra shaders-deploy
$SCETOOL_PATH $SCETOOL_FLAGS --encrypt ../retroarch-salamander_${PLATFORM}.elf ../${PLATFORM}/iso/PS3_GAME/USRDIR/EBOOT.BIN
rm -rf ../retroarch-salamander_${PLATFORM}.elf
$SCETOOL_PATH $SCETOOL_FLAGS --encrypt ../retroarch-salamander_${platform}.elf ../${platform}/iso/PS3_GAME/USRDIR/EBOOT.BIN
rm -rf ../retroarch-salamander_${platform}.elf
$GENPS3ISO_PATH ../${PLATFORM}/iso RetroArch-COBRA-ODE.iso
$GENPS3ISO_PATH ../${platform}/iso RetroArch-COBRA-ODE.iso

View File

@ -1,18 +1,18 @@
#!/bin/sh
PLATFORM=ps3
platform=ps3
make -C ../ -f Makefile.${PLATFORM}.salamander clean || exit 1
make -C ../ -f Makefile.${PLATFORM} clean || exit 1
make -C ../ -f Makefile.${platform}.salamander clean || exit 1
make -C ../ -f Makefile.${platform} clean || exit 1
make -C ../ -f Makefile.${PLATFORM}.salamander || exit 1
make -C ../ -f Makefile.${platform}.salamander || exit 1
EXE_PATH=/usr/local/cell/host-win32/bin
MAKE_FSELF_NPDRM=$EXE_PATH/make_fself_npdrm.exe
MAKE_PACKAGE_NPDRM=$EXE_PATH/make_package_npdrm.exe
for f in *_${PLATFORM}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).a$//"`
for f in *_${platform}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${platform}\|\).a$//"`
whole_archive=
if [ $name = "nxengine" ] ; then
echo "Applying whole archive linking..."
@ -23,17 +23,17 @@ for f in *_${PLATFORM}.a ; do
big_stack="BIG_STACK=1"
fi
echo "-- Building core: $name --"
cp -f "$f" ../libretro_${PLATFORM}.a
make -C ../ -f Makefile.${PLATFORM} $whole_archive $big_stack -j3 || exit 1
$MAKE_FSELF_NPDRM ../retroarch_${PLATFORM}.elf ../CORE.SELF
mv -f ../CORE.SELF ../pkg/${PLATFORM}/USRDIR/cores/"${name}_libretro_${PLATFORM}.SELF"
rm -f ../retroarch_${PLATFORM}.elf ../retroarch_${PLATFORM}.self ../CORE.SELF
cp -f "$f" ../libretro_${platform}.a
make -C ../ -f Makefile.${platform} $whole_archive $big_stack -j3 || exit 1
$MAKE_FSELF_NPDRM ../retroarch_${platform}.elf ../CORE.SELF
mv -f ../CORE.SELF ../pkg/${platform}/USRDIR/cores/"${name}_libretro_${platform}.SELF"
rm -f ../retroarch_${platform}.elf ../retroarch_${platform}.self ../CORE.SELF
done
cp -r ../media/rmenu/*.png ../pkg/${PLATFORM}/USRDIR/cores/borders/Menu/
cp -r ../media/rmenu/*.png ../pkg/${platform}/USRDIR/cores/borders/Menu/
make -C ../ -f Makefile.griffin platform=${PLATFORM} shaders-deploy
make -C ../ -f Makefile.griffin platform=${platform} shaders-deploy
$MAKE_FSELF_NPDRM ../retroarch-salamander_${PLATFORM}.elf ../pkg/${PLATFORM}/USRDIR/EBOOT.BIN
rm -rf ../retroarch-salamander_${PLATFORM}.elf
$MAKE_PACKAGE_NPDRM ../pkg/${PLATFORM}/package.conf ../pkg/${PLATFORM}
$MAKE_FSELF_NPDRM ../retroarch-salamander_${platform}.elf ../pkg/${platform}/USRDIR/EBOOT.BIN
rm -rf ../retroarch-salamander_${platform}.elf
$MAKE_PACKAGE_NPDRM ../pkg/${platform}/package.conf ../pkg/${platform}

View File

@ -1,21 +1,21 @@
#!/bin/sh
PLATFORM=psp1
platform=psp1
mkdir -p ../${PLATFORM}/pkg/cores/
mkdir -p ../${platform}/pkg/cores/
make -C ../${PLATFORM}/kernelFunctionsPrx/ clean || exit 1
make -C ../${PLATFORM}/kernelFunctionsPrx/ || exit 1
cp -f ../kernel_functions.prx ../pkg/${PLATFORM}/kernel_functions.prx
make -C ../${platform}/kernelFunctionsPrx/ clean || exit 1
make -C ../${platform}/kernelFunctionsPrx/ || exit 1
cp -f ../kernel_functions.prx ../pkg/${platform}/kernel_functions.prx
make -C ../ -f Makefile.${PLATFORM}.salamander clean || exit 1
make -C ../ -f Makefile.${PLATFORM}.salamander || exit 1
mv -f ../EBOOT.PBP ../pkg/${PLATFORM}/EBOOT.PBP
make -C ../ -f Makefile.${platform}.salamander clean || exit 1
make -C ../ -f Makefile.${platform}.salamander || exit 1
mv -f ../EBOOT.PBP ../pkg/${platform}/EBOOT.PBP
make -C ../ -f Makefile.${PLATFORM} clean || exit 1
make -C ../ -f Makefile.${platform} clean || exit 1
for f in *_${PLATFORM}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).a$//"`
for f in *_${platform}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${platform}\|\).a$//"`
whole_archive=
big_stack=
@ -30,15 +30,15 @@ for f in *_${PLATFORM}.a ; do
fi
if [ $big_stack="BIG_STACK=1" ] ; then
make -C ../ -f Makefile.${PLATFORM} clean || exit 1
make -C ../ -f Makefile.${platform} clean || exit 1
fi
cp -f "$f" ../libretro_${PLATFORM}.a
make -C ../ -f Makefile.${PLATFORM} $whole_archive $big_stack -j3 || exit 1
mv -f ../EBOOT.PBP ../pkg/${PLATFORM}/cores/${name}_libretro.PBP
cp -f "$f" ../libretro_${platform}.a
make -C ../ -f Makefile.${platform} $whole_archive $big_stack -j3 || exit 1
mv -f ../EBOOT.PBP ../pkg/${platform}/cores/${name}_libretro.PBP
rm -f ../retroarchpsp.elf
if [ $big_stack="BIG_STACK=1" ] ; then
make -C ../ -f Makefile.${PLATFORM} clean || exit 1
make -C ../ -f Makefile.${platform} clean || exit 1
fi
done

View File

@ -1,15 +1,15 @@
#!/bin/sh
PLATFORM=vita
platform=vita
#make -C ../ -f Makefile.${PLATFORM}.salamander clean || exit 1
make -C ../ -f Makefile.griffin platform=${PLATFORM} clean || exit 1
#make -C ../ -f Makefile.${platform}.salamander clean || exit 1
make -C ../ -f Makefile.griffin platform=${platform} clean || exit 1
#make -C ../ -f Makefile.${PLATFORM}.salamander || exit 1
#make -C ../ -f Makefile.${PLATFORM}.salamander pkg || exit 1
#make -C ../ -f Makefile.${platform}.salamander || exit 1
#make -C ../ -f Makefile.${platform}.salamander pkg || exit 1
for f in *_vita.a ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).a$//"`
name=`echo "$f" | sed "s/\(_libretro_${platform}\|\).a$//"`
whole_archive=
big_stack=
if [ $name = "nxengine" ] ; then
@ -20,8 +20,8 @@ for f in *_vita.a ; do
echo "Tyrquake found, applying big stack..."
big_stack="BIG_STACK=1"
fi
cp -f "$f" ../libretro_${PLATFORM}.a
make -C ../ -f Makefile.griffin platform=${PLATFORM} $whole_archive $big_stack -j3 || exit 1
mv -f ../retroarch_${PLATFORM}.velf ../pkg/${PLATFORM}/${name}_libretro_${PLATFORM}.velf
rm -f ../retroarch_${PLATFORM}.velf ../retroarch_${PLATFORM}.elf
cp -f "$f" ../libretro_${platform}.a
make -C ../ -f Makefile.griffin platform=${platform} $whole_archive $big_stack -j3 || exit 1
mv -f ../retroarch_${platform}.velf ../pkg/${platform}/${name}_libretro_${platform}.velf
rm -f ../retroarch_${platform}.velf ../retroarch_${platform}.elf
done

View File

@ -1,15 +1,15 @@
#!/bin/sh
PLATFORM=wii
platform=wii
make -C ../ -f Makefile.${PLATFORM}.salamander clean || exit 1
make -C ../ -f Makefile.griffin PLATFORM=${PLATFORM} clean || exit 1
make -C ../ -f Makefile.${platform}.salamander clean || exit 1
make -C ../ -f Makefile.griffin platform=${platform} clean || exit 1
make -C ../ -f Makefile.${PLATFORM}.salamander || exit 1
make -C ../ -f Makefile.${PLATFORM}.salamander pkg || exit 1
make -C ../ -f Makefile.${platform}.salamander || exit 1
make -C ../ -f Makefile.${platform}.salamander pkg || exit 1
for f in *_${PLATFORM}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).a$//"`
for f in *_${platform}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${platform}\|\).a$//"`
whole_archive=
big_stack=
if [ $name = "nxengine" ] ; then
@ -20,8 +20,8 @@ for f in *_${PLATFORM}.a ; do
echo "Tyrquake found, applying big stack..."
big_stack="BIG_STACK=1"
fi
cp -f "$f" ../libretro_${PLATFORM}.a
make -C ../ -f Makefile.griffin platform=${PLATFORM} $whole_archive $big_stack -j3 || exit 1
mv -f ../retroarch_${PLATFORM}.dol ../pkg/${PLATFORM}/${name}_libretro_${PLATFORM}.dol
rm -f ../retroarch_${PLATFORM}.dol ../retroarch_${PLATFORM}.elf ../retroarch_${PLATFORM}.elf.map
cp -f "$f" ../libretro_${platform}.a
make -C ../ -f Makefile.griffin platform=${platform} $whole_archive $big_stack -j3 || exit 1
mv -f ../retroarch_${platform}.dol ../pkg/${platform}/${name}_libretro_${platform}.dol
rm -f ../retroarch_${platform}.dol ../retroarch_${platform}.elf ../retroarch_${platform}.elf.map
done

View File

@ -1,6 +1,6 @@
#!/bin/sh
PLATFORM=xdk
platform=xdk
ip='192.168.1.10'
@ -8,15 +8,15 @@ mkdir -p ../msvc/RetroArch-Xbox1/Debug
mkdir -p ../msvc/RetroArch-Xbox1/Release
mkdir -p ../msvc/RetroArch-Xbox1/Release_LTCG
for f in *_${PLATFORM}.lib ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).lib$//"`
for f in *_${platform}.lib ; do
name=`echo "$f" | sed "s/\(_libretro_${platform}\|\).lib$//"`
echo $name
if [ $name = "tyrquake" ] || [ $name = "genesis_plus_gx" ] ; then
echo "Applying whole archive linking for this core..."
cp -f "$f" ../msvc/RetroArch-Xbox1/Release_LTCG_BigStack/libretro_${PLATFORM}.lib
cp -f "$f" ../msvc/RetroArch-Xbox1/Release_LTCG_BigStack/libretro_${platform}.lib
cmd.exe /k xdk1_env_bigstack.bat ${name}_libretro_xdk1
else
cp -f "$f" ../msvc/RetroArch-Xbox1/Release_LTCG/libretro_${PLATFORM}.lib
cp -f "$f" ../msvc/RetroArch-Xbox1/Release_LTCG/libretro_${platform}.lib
cmd.exe /k xdk1_env.bat ${name}_libretro_xdk1
fi
done

View File

@ -1,14 +1,14 @@
#!/bin/sh
PLATFORM=xdk360
platform=xdk360
mkdir -p ../msvc/RetroArch-360/Debug
mkdir -p ../msvc/RetroArch-360/Release
mkdir -p ../msvc/RetroArch-360/Release_LTCG
for f in *_${PLATFORM}.lib ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).lib$//"`
for f in *_${platform}.lib ; do
name=`echo "$f" | sed "s/\(_libretro_${platform}\|\).lib$//"`
echo $name
cp -f "$f" ../msvc/RetroArch-360/Release_LTCG/libretro_${PLATFORM}.lib
cmd.exe /k ${PLATFORM}_env.bat ${name}_libretro_${PLATFORM}
cp -f "$f" ../msvc/RetroArch-360/Release_LTCG/libretro_${platform}.lib
cmd.exe /k ${platform}_env.bat ${name}_libretro_${platform}
done