Fix up some dist-scripts

This commit is contained in:
twinaphex 2015-09-01 16:40:09 +02:00
parent bbbc353f28
commit 11d574bc30
2 changed files with 32 additions and 28 deletions

View File

@ -1,37 +1,39 @@
#!/bin/sh #!/bin/sh
make -C ../ -f Makefile.ps3.salamander clean || exit 1 PLATFORM=ps3
make -C ../ -f Makefile.ps3 clean || exit 1
make -C ../ -f Makefile.ps3.salamander || 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
EXE_PATH=/usr/local/cell/host-win32/bin EXE_PATH=/usr/local/cell/host-win32/bin
MAKE_FSELF_NPDRM=$EXE_PATH/make_fself_npdrm.exe MAKE_FSELF_NPDRM=$EXE_PATH/make_fself_npdrm.exe
MAKE_PACKAGE_NPDRM=$EXE_PATH/make_package_npdrm.exe MAKE_PACKAGE_NPDRM=$EXE_PATH/make_package_npdrm.exe
for f in *_ps3.a ; do for f in *_${PLATFORM}.a ; do
name=`echo "$f" | sed 's/\(_libretro_ps3\|\).a$//'` name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).a$//"`
whole_archive= whole_archive=
if [ $name = "nxengine" ] ; then if [ $name = "nxengine" ] ; then
echo "NXEngine found, applying whole archive linking..." echo "Applying whole archive linking..."
whole_archive="WHOLE_ARCHIVE_LINK=1" whole_archive="WHOLE_ARCHIVE_LINK=1"
echo $name yes
fi fi
if [ $name = "tyrquake" ] ; then if [ $name = "tyrquake" ] ; then
echo "Tyrquake found, applying big stack..." echo "Applying big stack..."
big_stack="BIG_STACK=1" big_stack="BIG_STACK=1"
fi fi
cp -f "$f" ../libretro_ps3.a echo "-- Building core: $name --"
make -C ../ -f Makefile.ps3 $whole_archive $big_stack -j3 || exit 1 cp -f "$f" ../libretro_${PLATFORM}.a
$MAKE_FSELF_NPDRM ../retroarch_ps3.elf ../CORE.SELF make -C ../ -f Makefile.${PLATFORM} $whole_archive $big_stack -j3 || exit 1
mv -f ../CORE.SELF ../ps3/pkg/USRDIR/cores/"${name}_libretro_ps3.SELF" $MAKE_FSELF_NPDRM ../retroarch_${PLATFORM}.elf ../CORE.SELF
rm -f ../retroarch_ps3.elf ../retroarch_ps3.self ../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 done
cp -r ../media/rmenu/*.png ../ps3/pkg/USRDIR/cores/borders/Menu/ cp -r ../media/rmenu/*.png ../pkg/${PLATFORM}/USRDIR/cores/borders/Menu/
make -C ../ -f Makefile.griffin platform=ps3 shaders-deploy make -C ../ -f Makefile.griffin platform=${PLATFORM} shaders-deploy
$MAKE_FSELF_NPDRM ../retroarch-salamander_ps3.elf ../ps3/pkg/USRDIR/EBOOT.BIN $MAKE_FSELF_NPDRM ../retroarch-salamander_${PLATFORM}.elf ../pkg/${PLATFORM}/USRDIR/EBOOT.BIN
rm -rf ../retroarch-salamander_ps3.elf rm -rf ../retroarch-salamander_${PLATFORM}.elf
$MAKE_PACKAGE_NPDRM ../ps3/pkg/package.conf ../ps3/pkg $MAKE_PACKAGE_NPDRM ../pkg/${PLATFORM}/package.conf ../pkg/${PLATFORM}

View File

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