2017-10-20 19:59:50 +00:00
#!/bin/bash
2015-02-17 03:19:30 +00:00
# vim: set ts=3 sw=3 noet ft=sh : bash
2016-03-18 04:16:42 +00:00
# ----- setup -----
2014-11-08 20:28:26 +00:00
2017-10-21 01:24:29 +00:00
# This will use an overridden value from the command-line if provided, otherwise just use the current date
LOGDATE = ${ LOGDATE :- ` date +%Y-%m-%d` }
2017-11-12 00:51:29 +00:00
TMPDIR = " ${ TMPDIR :- /tmp } "
2017-11-13 00:41:41 +00:00
if [ -z " ${ 1 } " ] ; then
echo 'No recipe target, exiting.' >& 2
exit 1
fi
2017-11-12 00:51:29 +00:00
mkdir -p -- " $TMPDIR /log/ ${ BOT } / ${ LOGDATE } "
2017-10-21 01:24:29 +00:00
2014-11-08 20:28:26 +00:00
ORIGPATH = $PATH
2014-12-17 23:59:08 +00:00
WORK = $PWD
2016-03-18 04:13:41 +00:00
RECIPE = $1
2016-03-22 22:36:43 +00:00
BRANCH = ""
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2014-11-08 20:28:26 +00:00
2016-01-14 23:16:40 +00:00
# ----- read variables from recipe config -----
2014-11-08 20:28:26 +00:00
while read line; do
2015-03-10 19:25:22 +00:00
KEY = ` echo $line | cut -f 1 -d " " `
2016-08-28 03:49:49 +00:00
VALUE = ` echo $line | cut -f 2 -d " " `
2017-11-13 15:49:09 +00:00
rm -f -- " $TMPDIR /vars "
2015-03-09 12:28:13 +00:00
if [ " ${ KEY } " = "PATH" ] ; then
2015-02-17 03:19:30 +00:00
export PATH = ${ VALUE } :${ ORIGPATH }
2017-06-05 01:05:51 +00:00
echo PATH = ${ VALUE } :${ ORIGPATH } >> $TMPDIR /vars
2015-02-17 03:19:30 +00:00
else
export ${ KEY } = ${ VALUE }
2017-06-05 01:05:51 +00:00
echo ${ KEY } = ${ VALUE } >> $TMPDIR /vars
2015-02-17 03:19:30 +00:00
fi
2016-08-11 05:07:57 +00:00
echo Setting: ${ KEY } ${ VALUE }
2015-03-09 12:23:17 +00:00
done < $1 .conf
2014-11-08 20:28:26 +00:00
2015-10-23 05:55:25 +00:00
read_link( )
{
TARGET_FILE = " $1 "
cd $( dirname " $TARGET_FILE " )
TARGET_FILE = $( basename " $TARGET_FILE " )
while [ -L " $TARGET_FILE " ] ; do
TARGET_FILE = $( readlink " $TARGET_FILE " )
cd $( dirname " $TARGET_FILE " )
TARGET_FILE = $( basename " $TARGET_FILE " )
done
PHYS_DIR = $( pwd -P)
RESULT = " $PHYS_DIR / $TARGET_FILE "
echo $RESULT
}
2016-10-10 21:46:50 +00:00
convert_xmb_assets( )
{
2017-06-05 01:05:51 +00:00
local src_dir = $1
local dst_dir = $2
local scale_icon = $3
local scale_bg = $4
# dots per inch, a value of 90 seems to produce a 64x64 resolution for most icons
local density = $5
mkdir -p " $dst_dir "
IFS_old = $IFS
IFS = $( echo -en "\n\b" )
for theme in ` ls $src_dir ` ; do
if [ -d $src_dir /$theme ] ; then
theme = ` basename " $theme " `
cp $src_dir /$theme /*.* $dst_dir /$theme /
mkdir -p " $dst_dir / $theme /png "
for png in ` ls $src_dir /$theme /png/*.png -d` ; do
local name = ` basename " $png " .png`
local src_file = " $src_dir / $theme /src/ $name .svg "
local is_svg = 1
if [ ! -e $src_file ] ; then
src_file = " $src_dir / $theme /png/ $name .png "
is_svg =
fi
local dst_file = " $dst_dir / $theme /png/ $name .png "
if [ ! -e $src_file ] || [ $src_file -nt $dst_file ] ; then
local scale_factor = $scale_icon
if [ $name = "bg" ] ; then
scale_factor = $scale_bg
fi
if [ $is_svg ] ; then
echo convert -background none -density $density " $src_file " -resize $scale_factor " $dst_file "
convert -background none -density $density " $src_file " -resize $scale_factor " $dst_file "
else
echo convert -background none " $src_file " -resize $scale_factor " $dst_file "
convert -background none " $src_file " -resize $scale_factor " $dst_file "
fi
fi
done
fi
done
IFS = $IFS_old
2016-10-10 21:46:50 +00:00
}
2015-10-21 22:51:31 +00:00
2016-01-14 23:16:40 +00:00
if [ " ${ CORE_JOB } " = = "YES" ] ; then
2016-01-18 17:59:40 +00:00
# ----- set target -----
2015-10-21 22:51:31 +00:00
[ [ " ${ ARM_NEON } " ] ] && echo 'ARM NEON opts enabled...' && export FORMAT_COMPILER_TARGET = " ${ FORMAT_COMPILER_TARGET } -neon "
[ [ " ${ CORTEX_A8 } " ] ] && echo 'Cortex A8 opts enabled...' && export FORMAT_COMPILER_TARGET = " ${ FORMAT_COMPILER_TARGET } -cortexa8 "
[ [ " ${ CORTEX_A9 } " ] ] && echo 'Cortex A9 opts enabled...' && export FORMAT_COMPILER_TARGET = " ${ FORMAT_COMPILER_TARGET } -cortexa9 "
[ [ " ${ ARM_HARDFLOAT } " ] ] && echo 'ARM hardfloat ABI enabled...' && export FORMAT_COMPILER_TARGET = " ${ FORMAT_COMPILER_TARGET } -hardfloat "
[ [ " ${ ARM_SOFTFLOAT } " ] ] && echo 'ARM softfloat ABI enabled...' && export FORMAT_COMPILER_TARGET = " ${ FORMAT_COMPILER_TARGET } -softfloat "
[ [ " ${ IOS } " ] ] && echo 'iOS detected...'
2015-10-21 22:59:19 +00:00
. $WORK /libretro-config.sh
2016-01-14 23:16:40 +00:00
# ----- create dirs -----
2015-10-23 06:36:13 +00:00
SCRIPT = $( read_link " $0 " )
echo " SCRIPT: $SCRIPT "
BASE_DIR = $( dirname " $SCRIPT " )
if [ -z " $RARCH_DIST_DIR " ] ; then
RARCH_DIR = " $BASE_DIR /dist "
RARCH_DIST_DIR = " $RARCH_DIR / $DIST_DIR "
fi
2015-10-21 22:51:31 +00:00
mkdir -v -p " $RARCH_DIST_DIR "
if [ " ${ PLATFORM } " = "android" ] ; then
2017-06-05 01:21:47 +00:00
if [ -n " $ABI_OVERRIDE " ] ; then
echo ABIS-pre: $TARGET_ABIS
echo OVERRIDE: ${ ABI_OVERRIDE }
2017-06-05 01:05:51 +00:00
TARGET_ABIS = ${ ABI_OVERRIDE }
export TARGET_ABIS = ${ ABI_OVERRIDE }
2017-06-05 01:21:47 +00:00
echo ABIS-post: $TARGET_ABIS
2017-06-05 01:05:51 +00:00
fi
2015-10-21 22:51:31 +00:00
IFS = ' ' read -ra ABIS <<< " $TARGET_ABIS "
for a in " ${ ABIS [@] } " ; do
echo $a
if [ -d $RARCH_DIST_DIR /${ a } ] ; then
echo " Directory $RARCH_DIST_DIR / ${ a } already exists, skipping creation... "
else
mkdir $RARCH_DIST_DIR /${ a }
fi
done
fi
2016-01-18 17:59:40 +00:00
# ----- set compilers -----
2015-10-21 22:51:31 +00:00
if [ " $HOST_CC " ] ; then
CC = " ${ HOST_CC } -gcc "
CXX = " ${ HOST_CC } -g++ "
CXX11 = " ${ HOST_CC } -g++ "
STRIP = " ${ HOST_CC } -strip "
fi
2016-08-28 03:49:49 +00:00
if [ -z " ${ HELPER } ${ MAKE } " ] ; then
2015-10-21 22:51:31 +00:00
if uname -s | grep -i MINGW32 > /dev/null 2>& 1; then
MAKE = mingw32-make
else
if type gmake > /dev/null 2>& 1; then
MAKE = gmake
else
MAKE = make
fi
fi
fi
if [ -z " $CC " ] ; then
if [ $FORMAT_COMPILER_TARGET = "osx" ] ; then
CC = cc
elif uname -s | grep -i MINGW32 > /dev/null 2>& 1; then
CC = mingw32-gcc
else
CC = gcc
fi
fi
if [ -z " $CXX " ] ; then
if [ $FORMAT_COMPILER_TARGET = "osx" ] ; then
CXX = c++
2017-10-09 23:13:08 +00:00
CXX11 = clang++
2015-10-21 22:51:31 +00:00
elif uname -s | grep -i MINGW32 > /dev/null 2>& 1; then
2016-05-16 05:12:49 +00:00
CXX = mingw32-g++f
2015-10-21 22:51:31 +00:00
CXX11 = mingw32-g++
else
CXX = g++
CXX11 = g++
fi
fi
if [ " ${ CC } " ] && [ " ${ CXX } " ] ; then
2015-10-31 18:31:18 +00:00
COMPILER = "CC=" \" " ${ CC } " \" " CXX=" \" " ${ CXX } " \" ""
2015-10-21 22:51:31 +00:00
else
COMPILER = ""
fi
RESET_FORMAT_COMPILER_TARGET = $FORMAT_COMPILER_TARGET
RESET_FORMAT_COMPILER_TARGET_ALT = $FORMAT_COMPILER_TARGET_ALT
check_opengl( ) {
if [ " ${ BUILD_LIBRETRO_GL } " ] ; then
if [ " ${ ENABLE_GLES } " ] ; then
export FORMAT_COMPILER_TARGET = " ${ FORMAT_COMPILER_TARGET } -gles "
export FORMAT_COMPILER_TARGET_ALT = " ${ FORMAT_COMPILER_TARGET } "
else
export FORMAT_COMPILER_TARGET = " ${ FORMAT_COMPILER_TARGET } -opengl "
export FORMAT_COMPILER_TARGET_ALT = " ${ FORMAT_COMPILER_TARGET } "
fi
fi
}
reset_compiler_targets( ) {
export FORMAT_COMPILER_TARGET = $RESET_FORMAT_COMPILER_TARGET
export FORMAT_COMPILER_TARGET_ALT = $RESET_FORMAT_COMPILER_TARGET_ALT
}
2015-10-23 06:36:13 +00:00
else
2016-03-02 04:58:42 +00:00
SCRIPT = $( read_link " $0 " )
2015-10-23 06:36:13 +00:00
echo " SCRIPT: $SCRIPT "
BASE_DIR = $( dirname " $SCRIPT " )
if [ -z " $RARCH_DIST_DIR " ] ; then
RARCH_DIR = " $BASE_DIR /dist "
RARCH_DIST_DIR = " $RARCH_DIR / $PLATFORM "
fi
2015-10-21 22:51:31 +00:00
fi
2016-01-18 17:59:40 +00:00
# ----- set jobs -----
2015-08-29 03:24:40 +00:00
if [ -z " $JOBS " ] ; then
2016-02-08 17:15:25 +00:00
JOBS = 6
2015-08-29 03:24:40 +00:00
fi
2015-09-10 23:14:34 +00:00
2016-01-18 17:59:40 +00:00
# ----- set forceful rebuild on/off -----
2015-09-10 05:39:29 +00:00
if [ -z " $FORCE " ] ; then
2015-09-13 16:52:57 +00:00
FORCE = NO
2015-09-10 05:39:29 +00:00
fi
2016-01-14 23:16:40 +00:00
if [ -z " $FORCE_RETROARCH_BUILD " ] ; then
FORCE_RETROARCH_BUILD = NO
fi
2015-09-10 23:14:34 +00:00
2016-01-22 17:05:34 +00:00
# ----- set release on/off -----
if [ -z " $RELEASE " ] ; then
RELEASE = NO
fi
2016-01-18 17:59:40 +00:00
# ----- set cleanup rules -----
2015-11-01 18:21:25 +00:00
CLEANUP = NO
2015-10-31 20:13:01 +00:00
DAY = ` date '+%d' `
2015-11-01 21:24:27 +00:00
HOUR = ` date '+%H' `
if [ $DAY = = 01 -a $HOUR = = 06 ] ; then
2015-10-31 20:11:26 +00:00
FORCE = YES
2015-11-01 18:21:25 +00:00
CLEANUP = NO
2015-10-31 20:11:26 +00:00
fi
2016-01-18 17:59:40 +00:00
# ----- use to keep track of built cores -----
2015-09-13 17:02:40 +00:00
CORES_BUILT = NO
2015-09-10 23:14:34 +00:00
2016-01-14 23:16:40 +00:00
FORCE_ORIG = $FORCE
JOBS_ORIG = $JOBS
2015-08-29 03:24:40 +00:00
2014-11-06 03:40:39 +00:00
cd " ${ BASE_DIR } "
2015-02-01 19:48:09 +00:00
buildbot_log( ) {
2016-01-14 23:32:14 +00:00
echo buildbot message: $MESSAGE
2015-10-18 19:30:45 +00:00
MESSAGE = ` echo -e $1 `
2015-03-06 00:50:45 +00:00
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 17:15:06 +00:00
HASH = ` echo -n " $MESSAGE " | openssl sha1 -hmac $SIG | cut -f 2 -d " " `
curl --max-time 30 --data " message= $MESSAGE &sign= $HASH " $LOGURL
fi
}
buildbot_handle_message( ) {
RET = $1
ENTRY_ID = $2
NAME = $3
jobid = $4
ERROR = $5
if [ $RET -eq 0 ] ; then
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 17:15:06 +00:00
curl -X POST -d type = "finish" -d index = " $ENTRY_ID " -d status = "done" http://buildbot.fiveforty.net/build_entry/
fi
MESSAGE = " $NAME : [status: done] [ $jobid ] "
else
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 17:15:06 +00:00
gzip -9fk $ERROR
HASTE = ` curl -X POST http://p.0bl.net/ --data-binary @${ ERROR } .gz`
MESSAGE = " $NAME : [status: fail] [ $jobid ] LOG: $HASTE "
curl -X POST -d type = "finish" -d index = " $ENTRY_ID " -d status = "fail" -d log = " $HASTE " http://buildbot.fiveforty.net/build_entry/
else
MESSAGE = " $NAME : [status: fail] [ $jobid ] "
fi
fi
echo buildbot job: $MESSAGE
buildbot_log " $MESSAGE "
2017-10-20 19:59:50 +00:00
2017-10-21 01:24:29 +00:00
# used by Travis-CI to exit immediately if a core build fails, instead of trying to build RA anyways (for static/console builds)
2017-10-21 01:39:03 +00:00
if [ $RET -ne 0 ] && [ " $EXIT_ON_ERROR " = "1" ] ; then
2017-10-20 20:09:26 +00:00
exit 1
2017-10-20 19:59:50 +00:00
fi
2015-02-01 19:48:09 +00:00
}
2014-11-06 00:25:06 +00:00
build_libretro_generic_makefile( ) {
2015-02-17 03:19:30 +00:00
NAME = $1
DIR = $2
SUBDIR = $3
MAKEFILE = $4
PLATFORM = $5
ARGS = $6
2015-08-03 03:36:17 +00:00
JOBS = $JOBS
2015-10-13 21:30:56 +00:00
2017-10-20 17:15:06 +00:00
ENTRY_ID = ""
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 17:15:06 +00:00
ENTRY_ID = ` curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = " $NAME " http://buildbot.fiveforty.net/build_entry/`
fi
2017-03-09 06:01:59 +00:00
2017-06-15 13:22:34 +00:00
if [ " ${ COMMAND } " = "CMAKE" ] ; then
mkdir -p $DIR /$SUBDIR
fi
2015-02-17 03:19:30 +00:00
cd $DIR
cd $SUBDIR
2016-01-14 23:16:40 +00:00
JOBS_ORIG = $JOBS
2015-10-16 05:34:24 +00:00
2015-11-03 15:08:00 +00:00
if [ " ${ NAME } " = = "mame2003" ] ; then
2015-02-17 03:19:30 +00:00
JOBS = 1
fi
2015-10-06 05:29:39 +00:00
if [ " ${ NAME } " = = "mame2010" ] ; then
JOBS = 1
fi
2015-02-17 03:19:30 +00:00
2017-06-05 01:05:51 +00:00
echo --------------------------------------------------| tee $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2016-12-31 20:31:30 +00:00
cat $TMPDIR /vars | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2016-12-09 02:27:12 +00:00
cd ${ DIR } /${ SUBDIR }
2016-12-31 20:31:30 +00:00
echo -------------------------------------------------- 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2015-03-09 12:23:17 +00:00
if [ -z " ${ NOCLEAN } " ] ; then
2017-06-15 14:36:20 +00:00
if [ " ${ COMMAND } " = "CMAKE" ] ; then
echo " CLEANUP CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } -j ${ JOBS } clean " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } -j${ JOBS } clean 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2016-05-30 21:54:13 +00:00
else
2017-06-15 14:36:20 +00:00
if [ -z " ${ ARGS } " ] ; then
echo " CLEANUP CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform= ${ PLATFORM } -j ${ JOBS } clean " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform = ${ PLATFORM } -j${ JOBS } clean 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
else
echo " CLEANUP CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform= ${ PLATFORM } -j ${ JOBS } ${ ARGS } clean " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform = ${ PLATFORM } -j${ JOBS } ${ ARGS } clean 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
fi
2016-05-30 21:54:13 +00:00
fi
2017-06-15 14:36:20 +00:00
2015-03-09 12:23:17 +00:00
if [ $? -eq 0 ] ; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup success!
2015-02-17 03:19:30 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup failed!
2015-02-17 03:19:30 +00:00
fi
fi
2016-12-31 20:31:30 +00:00
echo -------------------------------------------------- 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2015-10-18 19:30:45 +00:00
if [ " ${ NAME } " = = "mame2010" ] ; then
2016-12-31 20:31:30 +00:00
echo "BUILD CMD: PLATFORM=" " platform=" " ${ HELPER } ${ MAKE } -f ${ MAKEFILE } " VRENDER = soft" " NATIVE = 1" buildtools -j ${ JOBS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
PLATFORM = "" platform = "" ${ HELPER } ${ MAKE } -f ${ MAKEFILE } "VRENDER=soft" "NATIVE=1" buildtools -j${ JOBS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2016-01-14 23:16:40 +00:00
JOBS = $JOBS_ORIG
2015-10-18 19:30:45 +00:00
fi
2015-10-16 05:24:41 +00:00
2017-06-15 13:22:34 +00:00
if [ " ${ COMMAND } " = "CMAKE" ] ; then
2017-09-27 18:42:48 +00:00
if [ " ${ PLATFORM } " = "android" ] ; then
EXTRAARGS = " -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION= ${ API_LEVEL } -DCMAKE_ANDROID_ARCH_ABI= ${ ABI_OVERRIDE } -DCMAKE_ANDROID_NDK= ${ NDK_ROOT } "
fi
2017-06-15 13:22:34 +00:00
if [ -z " ${ ARGS } " ] ; then
echo " BUILD CMD: ${ CMAKE } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ CMAKE } | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
echo " BUILD CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } -j ${ JOBS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform = ${ PLATFORM } -j${ JOBS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
else
2017-09-27 18:42:48 +00:00
echo " BUILD CMD: ${ CMAKE } ${ EXTRAARGS } ${ ARGS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
echo ${ EXTRAARGS } ${ ARGS } | xargs ${ CMAKE } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2017-06-15 13:22:34 +00:00
echo " BUILD CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } -j ${ JOBS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } -j${ JOBS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
fi
2017-06-16 14:07:58 +00:00
find . -mindepth 2 -name " ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " -exec cp -f "{}" . \;
2015-02-17 03:19:30 +00:00
else
2017-06-15 13:22:34 +00:00
if [ -z " ${ ARGS } " ] ; then
echo " BUILD CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform= ${ PLATFORM } -j ${ JOBS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform = ${ PLATFORM } -j${ JOBS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
else
echo " BUILD CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform= ${ PLATFORM } -j ${ JOBS } ${ ARGS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform = ${ PLATFORM } -j${ JOBS } ${ ARGS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
fi
2017-06-15 14:24:32 +00:00
fi
2015-10-16 05:24:41 +00:00
2015-10-16 05:20:40 +00:00
if [ " ${ MAKEPORTABLE } " = = "YES" ] ; then
2016-12-31 20:31:30 +00:00
echo " BUILD CMD $WORK /retrolink.sh ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
$WORK /retrolink.sh ${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2015-10-18 19:30:45 +00:00
fi
2015-10-16 05:20:40 +00:00
2017-06-12 21:31:49 +00:00
if [ " ${ PLATFORM } " = = "windows" -o " ${ PLATFORM } " = = "unix" ] ; then
if [ -z " ${ STRIP } " ] ; then
STRIP = strip
fi
${ STRIP } -s ${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT }
fi
2016-12-31 20:31:30 +00:00
echo " COPY CMD: cp -v ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } $RARCH_DIST_DIR / ${ DIST } / ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
cp -v ${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } $RARCH_DIST_DIR /${ DIST } /${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2015-11-25 04:40:17 +00:00
cp -v ${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } $RARCH_DIST_DIR /${ DIST } /${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT }
2016-07-10 15:57:51 +00:00
2017-10-20 17:15:06 +00:00
RET = $?
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " " $NAME " " $jobid " " $ERROR "
2015-10-13 21:34:31 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2016-01-14 23:16:40 +00:00
JOBS = $JOBS_ORIG
2014-11-06 00:25:06 +00:00
}
2015-06-17 23:49:20 +00:00
build_libretro_leiradel_makefile( ) {
NAME = $1
DIR = $2
SUBDIR = $3
MAKEFILE = $4
PLATFORM = $5
ARGS = $6
2017-10-20 17:15:06 +00:00
ENTRY_ID = ""
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 17:15:06 +00:00
ENTRY_ID = ` curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = " $NAME " http://buildbot.fiveforty.net/build_entry/`
fi
2017-03-09 06:01:59 +00:00
2015-09-13 16:52:57 +00:00
ARG1 = ` echo ${ ARGS } | cut -f 1 -d " " `
mkdir -p $RARCH_DIST_DIR /${ DIST } /${ ARG1 }
2015-08-13 22:11:51 +00:00
2015-06-17 23:49:20 +00:00
cd $DIR
cd $SUBDIR
2016-01-14 23:16:40 +00:00
JOBS_ORIG = $JOBS
2015-06-17 23:49:20 +00:00
2017-06-05 01:05:51 +00:00
echo --------------------------------------------------| tee $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2016-12-09 02:27:12 +00:00
cat $TMPDIR /vars | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
cd ${ DIR } /${ SUBDIR }
echo -------------------------------------------------- 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2015-06-17 23:49:20 +00:00
if [ -z " ${ NOCLEAN } " ] ; then
2016-12-31 20:31:30 +00:00
echo " CLEANUP CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } . ${ PLATFORM } _ ${ ARGS } platform= ${ PLATFORM } _ ${ ARGS } -j ${ JOBS } clean " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } .${ PLATFORM } _${ ARGS } platform = ${ PLATFORM } _${ ARGS } -j${ JOBS } clean 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2015-06-17 23:49:20 +00:00
if [ $? -eq 0 ] ; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup success!
2015-06-17 23:49:20 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup failed!
2015-06-17 23:49:20 +00:00
fi
fi
2016-12-31 20:31:30 +00:00
echo -------------------------------------------------- 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2017-10-20 17:15:06 +00:00
echo " BUILD CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } . ${ PLATFORM } _ ${ ARGS } platform= ${ PLATFORM } _ ${ ARGS } -j ${ JOBS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } .${ PLATFORM } _${ ARGS } platform = ${ PLATFORM } _${ ARGS } -j${ JOBS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2015-06-17 23:49:20 +00:00
2017-10-20 17:15:06 +00:00
echo " COPY CMD: cp -v ${ NAME } _libretro. ${ PLATFORM } _ ${ ARG1 } . ${ FORMAT_EXT } $RARCH_DIST_DIR / ${ DIST } / ${ ARG1 } / ${ NAME } _libretro ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
cp -v ${ NAME } _libretro.${ PLATFORM } _${ ARG1 } .${ FORMAT_EXT } $RARCH_DIST_DIR /${ DIST } /${ ARG1 } /${ NAME } _libretro${ LIBSUFFIX } .${ FORMAT_EXT } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
cp -v ${ NAME } _libretro.${ PLATFORM } _${ ARG1 } .${ FORMAT_EXT } $RARCH_DIST_DIR /${ DIST } /${ ARG1 } /${ NAME } _libretro${ LIBSUFFIX } .${ FORMAT_EXT }
2016-03-24 02:46:15 +00:00
2017-10-20 17:15:06 +00:00
RET = $?
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " " $NAME " " $jobid " " $ERROR "
2015-11-01 17:28:14 +00:00
2017-10-20 17:15:06 +00:00
ENTRY_ID = ""
JOBS = $JOBS_ORIG
2016-07-10 16:14:49 +00:00
}
build_libretro_generic_gl_makefile( ) {
NAME = $1
DIR = $2
SUBDIR = $3
MAKEFILE = $4
PLATFORM = $5
ARGS = $6
check_opengl
2017-10-20 17:15:06 +00:00
ENTRY_ID = ""
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 17:15:06 +00:00
ENTRY_ID = ` curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = " $NAME " http://buildbot.fiveforty.net/build_entry/`
fi
2017-03-09 06:01:59 +00:00
2016-07-10 16:14:49 +00:00
cd $DIR
cd $SUBDIR
2017-06-05 01:05:51 +00:00
echo --------------------------------------------------| tee $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2016-12-09 02:27:12 +00:00
cat $TMPDIR /vars | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
cd ${ DIR } /${ SUBDIR }
echo -------------------------------------------------- 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2015-11-01 17:28:14 +00:00
if [ -z " ${ NOCLEAN } " ] ; then
2016-12-31 20:31:30 +00:00
echo " CLEANUP CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform= ${ PLATFORM } -j ${ JOBS } clean " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform = ${ PLATFORM } -j${ JOBS } clean 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2015-11-01 17:28:14 +00:00
if [ $? -eq 0 ] ; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup success!
2015-11-01 17:28:14 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup failed!
2015-11-01 17:28:14 +00:00
fi
fi
2016-07-10 16:14:49 +00:00
2016-12-31 20:31:30 +00:00
echo -------------------------------------------------- 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2016-07-10 16:14:49 +00:00
if [ -z " ${ ARGS } " ] ; then
2016-12-31 20:31:30 +00:00
echo " BUILD CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform= ${ PLATFORM } -j ${ JOBS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform = ${ PLATFORM } -j${ JOBS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2016-07-10 16:14:49 +00:00
else
2016-12-31 20:31:30 +00:00
echo " BUILD CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform= ${ PLATFORM } ${ COMPILER } -j ${ JOBS } ${ ARGS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform = ${ PLATFORM } -j${ JOBS } ${ ARGS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2016-07-10 16:14:49 +00:00
fi
2016-12-31 20:31:30 +00:00
echo " COPY CMD: cp -v ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } $RARCH_DIST_DIR / ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
cp -v ${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } $RARCH_DIST_DIR /${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2016-07-10 16:14:49 +00:00
cp -v ${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } $RARCH_DIST_DIR /${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT }
2017-10-20 17:15:06 +00:00
RET = $?
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " " $NAME " " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2016-07-10 16:14:49 +00:00
reset_compiler_targets
2014-12-23 23:11:56 +00:00
}
build_libretro_generic_jni( ) {
2015-02-17 03:19:30 +00:00
NAME = $1
DIR = $2
SUBDIR = $3
MAKEFILE = $4
PLATFORM = $5
ARGS = $6
2017-10-20 17:15:06 +00:00
ENTRY_ID = ""
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 17:15:06 +00:00
ENTRY_ID = ` curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = " $NAME " http://buildbot.fiveforty.net/build_entry/`
fi
2017-03-09 06:01:59 +00:00
2016-12-02 06:13:03 +00:00
echo --------------------------------------------------| tee $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
cat $TMPDIR /vars | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2015-02-17 03:19:30 +00:00
cd ${ DIR } /${ SUBDIR }
2016-12-02 06:13:03 +00:00
echo -------------------------------------------------- 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2015-02-17 03:19:30 +00:00
for a in " ${ ABIS [@] } " ; do
2015-03-09 12:23:17 +00:00
if [ -z " ${ NOCLEAN } " ] ; then
2016-07-10 15:57:51 +00:00
echo " CLEANUP CMD: ${ NDK } -j ${ JOBS } ${ ARGS } APP_ABI= ${ a } clean " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
${ NDK } -j${ JOBS } ${ ARGS } APP_ABI = ${ a } clean 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2015-10-06 05:32:57 +00:00
if [ $? -eq 0 ] ; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $a $1 cleanup success!
2015-02-17 03:19:30 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $a $1 cleanup failed!
2015-02-17 03:19:30 +00:00
fi
fi
2016-07-10 16:14:49 +00:00
echo -------------------------------------------------- 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2015-03-09 12:23:17 +00:00
if [ -z " ${ ARGS } " ] ; then
2016-07-10 15:57:51 +00:00
echo " BUILD CMD: ${ NDK } -j ${ JOBS } APP_ABI= ${ a } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
${ NDK } -j${ JOBS } APP_ABI = ${ a } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2015-02-17 03:19:30 +00:00
else
2016-07-10 15:57:51 +00:00
echo " BUILD CMD: ${ NDK } -j ${ JOBS } APP_ABI= ${ a } ${ ARGS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2015-10-16 05:40:30 +00:00
${ NDK } -j${ JOBS } APP_ABI = ${ a } ${ ARGS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2015-02-17 03:19:30 +00:00
fi
2015-10-16 05:40:30 +00:00
2016-12-31 20:31:30 +00:00
2016-07-23 05:22:52 +00:00
if [ " ${ NAME } " = = "mupen64plus" ] ; then
2016-07-23 05:41:09 +00:00
echo " COPY CMD: cp -v ../libs/ ${ a } /libparallel_retro. ${ FORMAT_EXT } $RARCH_DIST_DIR / ${ a } /parallel_libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2016-07-23 06:04:05 +00:00
cp -v ../libs/${ a } /libparallel_retro.${ FORMAT_EXT } $RARCH_DIST_DIR /${ a } /parallel_libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2016-07-23 05:41:09 +00:00
cp -v ../libs/${ a } /libparallel_retro.${ FORMAT_EXT } $RARCH_DIST_DIR /${ a } /parallel_libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT }
2016-07-22 17:39:13 +00:00
fi
2016-07-23 05:21:22 +00:00
echo " COPY CMD: cp -v ../libs/ ${ a } /libretro. ${ FORMAT_EXT } $RARCH_DIST_DIR / ${ a } / ${ 1 } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2016-07-10 15:57:51 +00:00
cp -v ../libs/${ a } /libretro.${ FORMAT_EXT } $RARCH_DIST_DIR /${ a } /${ 1 } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2017-10-20 17:15:06 +00:00
cp -v ../libs/${ a } /libretro.${ FORMAT_EXT } $RARCH_DIST_DIR /${ a } /${ 1 } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT }
RET = $?
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " " $NAME " " $jobid " " $ERROR "
2016-12-31 20:31:30 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2015-10-18 19:22:02 +00:00
2015-11-01 17:28:14 +00:00
if [ -z " ${ NOCLEAN } " ] ; then
2016-07-10 15:57:51 +00:00
echo " CLEANUP CMD: ${ NDK } -j ${ JOBS } ${ ARGS } APP_ABI= ${ a } clean " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
${ NDK } -j${ JOBS } ${ ARGS } APP_ABI = ${ a } clean 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PLATFORM } _${ a } .log
2015-11-01 17:28:14 +00:00
if [ $? -eq 0 ] ; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $a $1 cleanup success!
2015-11-01 17:28:14 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $a $1 cleanup failed!
2015-11-01 17:28:14 +00:00
fi
fi
2015-11-01 18:04:03 +00:00
done
2016-07-10 16:14:49 +00:00
2014-12-18 03:39:09 +00:00
}
2014-12-26 00:49:47 +00:00
build_libretro_bsnes_jni( ) {
2015-02-17 03:19:30 +00:00
NAME = $1
DIR = $2
SUBDIR = $3
MAKEFILE = $4
PLATFORM = $5
PROFILE = $6
2017-10-20 17:15:06 +00:00
ENTRY_ID = ""
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 17:15:06 +00:00
ENTRY_ID = ` curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = " $NAME " http://buildbot.fiveforty.net/build_entry/`
fi
2017-03-09 06:01:59 +00:00
2015-02-17 03:19:30 +00:00
cd ${ DIR } /${ SUBDIR }
2016-07-10 16:50:48 +00:00
echo -------------------------------------------------- 2>& 1 | tee $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } _${ a } .log
2015-02-17 03:19:30 +00:00
for a in " ${ ABIS [@] } " ; do
2015-03-09 12:23:17 +00:00
if [ -z " ${ NOCLEAN } " ] ; then
2016-07-10 16:50:48 +00:00
echo " CLEANUP CMD: ${ NDK } -j ${ JOBS } APP_ABI= ${ a } clean " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } _${ a } .log
${ NDK } -j${ JOBS } APP_ABI = ${ a } clean 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } _${ a } .log
2015-03-09 12:23:17 +00:00
if [ $? -eq 0 ] ; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup success!
2015-03-09 12:23:17 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup failed!
2015-03-09 12:23:17 +00:00
fi
2015-02-17 03:19:30 +00:00
fi
2016-07-10 16:50:48 +00:00
echo -------------------------------------------------- 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } _${ a } .log
2016-03-02 04:48:19 +00:00
if [ -z " ${ ARGS } " ] ; then
2016-07-10 16:50:48 +00:00
echo " BUILD CMD: ${ NDK } -j ${ JOBS } APP_ABI= ${ a } profile= ${ PROFILE } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } _${ a } .log
${ NDK } -j${ JOBS } APP_ABI = ${ a } profile = ${ PROFILE } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } _${ a } .log
2015-02-17 03:19:30 +00:00
else
2016-07-10 16:50:48 +00:00
echo " BUILD CMD: ${ NDK } -j ${ JOBS } APP_ABI= ${ a } profile= ${ PROFILE } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } _${ a } .log
${ NDK } -j${ JOBS } APP_ABI = ${ a } profile = ${ PROFILE } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } _${ a } .log
2015-02-17 03:19:30 +00:00
fi
2016-03-02 04:48:19 +00:00
2016-07-10 16:50:48 +00:00
echo " COPY CMD: cp -v ../libs/ ${ a } /libretro_ ${ NAME } _ ${ PROFILE } . ${ FORMAT_EXT } $RARCH_DIST_DIR / ${ a } / ${ NAME } _ ${ PROFILE } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } _${ a } .log
cp -v ../libs/${ a } /libretro_${ NAME } _${ PROFILE } .${ FORMAT_EXT } $RARCH_DIST_DIR /${ a } /${ NAME } _${ PROFILE } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } _${ a } .log
2016-02-29 01:58:01 +00:00
cp -v ../libs/${ a } /libretro_${ NAME } _${ PROFILE } .${ FORMAT_EXT } $RARCH_DIST_DIR /${ a } /${ NAME } _${ PROFILE } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT }
2016-03-24 02:46:15 +00:00
2017-10-20 17:15:06 +00:00
RET = $?
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } _${ a } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " " $NAME " " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
ENTRY_ID = ""
2015-02-17 03:19:30 +00:00
done
2014-12-26 00:49:47 +00:00
}
2017-10-08 14:34:08 +00:00
build_libretro_bsnes( ) {
2017-10-08 14:27:43 +00:00
NAME = $1
DIR = $2
2017-10-08 14:34:08 +00:00
PROFILE = $3
2017-10-08 14:27:43 +00:00
MAKEFILE = $4
2017-10-08 14:34:08 +00:00
PLATFORM = $5
BSNESCOMPILER = $6
2017-10-08 14:27:43 +00:00
2017-10-20 17:15:06 +00:00
ENTRY_ID = ""
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 17:15:06 +00:00
ENTRY_ID = ` curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = " $NAME " http://buildbot.fiveforty.net/build_entry/`
fi
2017-10-08 14:27:43 +00:00
2017-10-08 14:34:08 +00:00
cd $DIR
2017-10-08 14:27:43 +00:00
echo -------------------------------------------------- 2>& 1 | tee $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
if [ -z " ${ NOCLEAN } " ] ; then
rm -f obj/*.{ o," ${ FORMAT_EXT } " } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
rm -f out/*.{ o," ${ FORMAT_EXT } " } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
2017-10-08 14:34:08 +00:00
if [ " ${ PROFILE } " = "cpp98" -o " ${ PROFILE } " = "bnes" ] ; then
${ HELPER } ${ MAKE } clean 2>& 1 | tee $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
fi
2017-10-08 14:27:43 +00:00
if [ $? -eq 0 ] ; then
echo buildbot job: $jobid $1 cleanup success!
else
echo buildbot job: $jobid $1 cleanup failed!
fi
fi
echo -------------------------------------------------- 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
2017-10-08 14:34:08 +00:00
if [ " ${ PROFILE } " = "cpp98" ] ; then
${ HELPER } ${ MAKE } platform = " ${ PLATFORM } " ${ COMPILER } " -j ${ JOBS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
elif [ " ${ PROFILE } " = "bnes" ] ; then
echo " BUILD CMD: ${ HELPER } ${ MAKE } -f Makefile ${ COMPILER } " -j${ JOBS } " compiler= ${ BSNESCOMPILER } " platform = ${ FORMAT_COMPILER_TARGET } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f Makefile ${ COMPILER } " -j ${ JOBS } " compiler = " ${ BSNESCOMPILER } " platform = ${ FORMAT_COMPILER_TARGET } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
else
echo " BUILD CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform= ${ PLATFORM } compiler= ${ BSNESCOMPILER } ui='target-libretro' profile= ${ PROFILE } -j ${ JOBS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } platform = ${ PLATFORM } compiler = ${ BSNESCOMPILER } ui = 'target-libretro' profile = ${ PROFILE } -j${ JOBS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
fi
2017-10-08 14:27:43 +00:00
2017-10-08 14:34:08 +00:00
if [ " ${ PROFILE } " = "cpp98" ] ; then
echo " COPY CMD: cp -fv out/ ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " " ${ RARCH_DIST_DIR } / ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
cp -fv " out/ ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " " ${ RARCH_DIST_DIR } / ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
cp -fv " out/ ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " " ${ RARCH_DIST_DIR } / ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1
elif [ " ${ PROFILE } " = "bnes" ] ; then
echo " COPY CMD cp -fv ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " " ${ RARCH_DIST_DIR } / ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
cp -fv " ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " " ${ RARCH_DIST_DIR } / ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
cp -fv " ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " " ${ RARCH_DIST_DIR } / ${ NAME } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } "
else
echo "COPY CMD cp -fv " out/${ NAME } _${ PROFILE } _libretro${ FORMAT } .${ FORMAT_EXT } " $RARCH_DIST_DIR / ${ NAME } _ ${ PROFILE } _libretro ${ FORMAT } ${ LIBSUFFIX } . ${ FORMAT_EXT } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
cp -fv " out/ ${ NAME } _ ${ PROFILE } _libretro ${ FORMAT } . ${ FORMAT_EXT } " $RARCH_DIST_DIR /${ NAME } _${ PROFILE } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
cp -fv " out/ ${ NAME } _ ${ PROFILE } _libretro ${ FORMAT } . ${ FORMAT_EXT } " $RARCH_DIST_DIR /${ NAME } _${ PROFILE } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT }
fi
2017-10-08 14:27:43 +00:00
2017-10-20 17:15:06 +00:00
RET = $?
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " " ${ NAME } - ${ PROFILE } " " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
ENTRY_ID = ""
2017-10-08 14:27:43 +00:00
}
2017-10-08 14:34:08 +00:00
build_libretro_higan( ) {
2015-02-17 03:19:30 +00:00
NAME = $1
DIR = $2
2017-10-08 14:34:08 +00:00
SUBDIR = $3
2015-02-17 03:19:30 +00:00
MAKEFILE = $4
2017-10-08 15:02:23 +00:00
PLAT = $5
2017-10-08 14:39:42 +00:00
BSNESCOMPILER = $7
2017-10-08 14:34:08 +00:00
ARGS = $8
2015-02-17 03:19:30 +00:00
2017-10-20 17:15:06 +00:00
ENTRY_ID = ""
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 17:15:06 +00:00
ENTRY_ID = ` curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = " $NAME " http://buildbot.fiveforty.net/build_entry/`
fi
2017-03-09 06:01:59 +00:00
2017-10-08 14:34:08 +00:00
cd $DIR /$SUBDIR
2017-10-08 15:02:23 +00:00
echo -------------------------------------------------- 2>& 1 | tee $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLAT } .log
2015-03-09 12:23:17 +00:00
if [ -z " ${ NOCLEAN } " ] ; then
2015-02-17 03:19:30 +00:00
2017-10-08 15:02:23 +00:00
rm -f obj/*.{ o," ${ FORMAT_EXT } " } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLAT } .log
rm -f out/*.{ o," ${ FORMAT_EXT } " } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLAT } .log
2015-02-17 03:19:30 +00:00
2015-03-09 12:23:17 +00:00
if [ $? -eq 0 ] ; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup success!
2015-02-17 03:19:30 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup failed!
2015-02-17 03:19:30 +00:00
fi
fi
2016-01-18 17:59:40 +00:00
2017-10-08 14:52:11 +00:00
unset $platform
2017-10-08 15:02:23 +00:00
unset $PLATFORM
2017-10-08 15:03:35 +00:00
platform = ""
PLATFORM = ""
2017-10-08 14:52:11 +00:00
2017-10-08 15:02:23 +00:00
echo -------------------------------------------------- 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLAT } .log
echo " BUILD CMD: ${ HELPER } ${ MAKE } -f ${ MAKEFILE } compiler= ${ BSNESCOMPILER } ${ ARGS } -j ${ JOBS } " 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLAT } .log
${ HELPER } ${ MAKE } -f ${ MAKEFILE } compiler = ${ BSNESCOMPILER } ${ ARGS } -j${ JOBS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLAT } .log
2017-10-08 14:34:08 +00:00
2017-10-08 15:02:23 +00:00
echo "COPY CMD cp -fv" " out/ ${ NAME } _ ${ PROFILE } _libretro ${ FORMAT } . ${ FORMAT_EXT } " $RARCH_DIST_DIR /${ NAME } _${ PROFILE } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLAT } .log
cp -fv " out/ ${ NAME } _libretro ${ FORMAT } . ${ FORMAT_EXT } " $RARCH_DIST_DIR /${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLAT } .log
2017-10-08 14:34:08 +00:00
cp -fv " out/ ${ NAME } _libretro ${ FORMAT } . ${ FORMAT_EXT } " $RARCH_DIST_DIR /${ NAME } _libretro${ FORMAT } ${ LIBSUFFIX } .${ FORMAT_EXT }
2017-10-20 17:15:06 +00:00
RET = $?
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _${ NAME } _${ PROFILE } _${ PLAT } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " " ${ NAME } - ${ PROFILE } " " $jobid " " $ERROR "
2015-02-17 03:19:30 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2014-11-06 06:21:26 +00:00
}
2016-01-14 23:16:40 +00:00
# ----- buildbot -----
2014-11-06 00:25:06 +00:00
2016-01-14 23:16:40 +00:00
echo buildbot starting
echo --------------------------------------------------
echo Variables:
2016-03-02 04:58:42 +00:00
echo CC $CC
echo CXX $CXX
echo STRIP $STRIP
2016-01-14 23:16:40 +00:00
echo DISTDIR $RARCH_DIST_DIR
2016-03-02 04:58:42 +00:00
echo JOBS $JOBS
2016-01-14 23:16:40 +00:00
echo
echo
2015-10-13 23:18:23 +00:00
2015-01-17 17:52:59 +00:00
export jobid = $1
2015-01-17 05:56:23 +00:00
2016-01-14 23:16:40 +00:00
# ----- fetch a project -----
2014-11-06 05:34:54 +00:00
echo
echo
2014-11-06 00:25:06 +00:00
while read line; do
2015-03-10 19:25:22 +00:00
NAME = ` echo $line | cut -f 1 -d " " `
DIR = ` echo $line | cut -f 2 -d " " `
URL = ` echo $line | cut -f 3 -d " " `
2017-04-15 18:02:54 +00:00
GIT_BRANCH = ` echo $line | cut -f 4 -d " " `
TYPE = ` echo $line | cut -f 5 -d " " `
ENABLED = ` echo $line | cut -f 6 -d " " `
COMMAND = ` echo $line | cut -f 7 -d " " `
MAKEFILE = ` echo $line | cut -f 8 -d " " `
SUBDIR = ` echo $line | cut -f 9 -d " " `
2015-02-17 03:19:30 +00:00
2017-11-07 04:34:03 +00:00
if [ " $SINGLE_CORE " ] && [ " $NAME " != " $SINGLE_CORE " ] ; then
continue
2017-10-31 04:16:58 +00:00
fi
2015-03-09 12:28:13 +00:00
if [ " ${ ENABLED } " = "YES" ] ; then
2017-08-16 04:31:19 +00:00
echo -ne "buildbot job started at: "
date
echo
2016-01-14 23:16:40 +00:00
echo " buildbot job: $jobid processing $NAME "
2016-03-02 04:58:42 +00:00
echo --------------------------------------------------
2016-01-14 23:16:40 +00:00
echo Variables:
2016-03-02 04:58:42 +00:00
echo URL $URL
2016-01-14 23:16:40 +00:00
echo REPO TYPE $TYPE
2016-03-02 04:58:42 +00:00
echo ENABLED $ENABLED
echo COMMAND $COMMAND
echo MAKEFILE $MAKEFILE
echo DIR $DIR
echo SUBDIR $SUBDIR
echo
echo
2015-02-17 03:19:30 +00:00
ARGS = ""
2017-11-10 09:04:30 +00:00
for number in { 10..30} ; do
2017-11-06 20:11:27 +00:00
TEMP = " $( echo " $line " | cut -f " $number " -d " " ) "
if [ -n " ${ TEMP } " ] ; then
2017-04-15 18:02:54 +00:00
ARGS = " ${ ARGS } ${ TEMP } "
fi
2017-11-06 20:11:27 +00:00
done
2015-02-17 03:19:30 +00:00
2017-11-06 20:11:27 +00:00
ARGS = " ${ ARGS # } "
2015-03-09 12:23:17 +00:00
ARGS = " ${ ARGS % " ${ ARGS ##*[![ : space : ]] } " } "
2017-03-18 02:52:51 +00:00
BUILD = "NO"
2017-11-11 15:28:51 +00:00
UPDATE = "YES"
2015-02-17 03:19:30 +00:00
2017-11-11 01:44:42 +00:00
if [ ! -d " ${ DIR } /.git " ] || [ " ${ CLEANUP } " = "YES" ] ; then
rm -rfv -- " $DIR "
echo " cloning repo $URL ... "
git clone --depth= 1 -b " $GIT_BRANCH " " $URL " " $DIR "
BUILD = "YES"
2017-11-11 15:28:51 +00:00
UPDATE = "NO"
fi
2015-02-17 03:19:30 +00:00
2017-11-11 15:28:51 +00:00
cd " $DIR "
if [ " ${ UPDATE } " != "NO" ] ; then
2017-11-11 01:44:42 +00:00
if [ -f .forcebuild ] ; then
echo " found .forcebuild file, building $NAME "
BUILD = "YES"
fi
2016-03-02 04:48:19 +00:00
2017-11-11 01:44:42 +00:00
echo " pulling changes from repo $URL ... "
OUT = " $( git pull) "
echo " $OUT "
2017-11-11 15:28:51 +00:00
if [ [ $OUT = = *"Already up-to-date" * ] ] && [ " ${ BUILD } " != "YES" ] ; then
2017-11-11 01:44:42 +00:00
BUILD = "NO"
else
echo " resetting repo state $URL ... "
git reset --hard FETCH_HEAD
git clean -xdf
BUILD = "YES"
2017-11-07 03:38:52 +00:00
fi
2017-11-11 15:28:51 +00:00
elif [ " ${ TYPE } " = "psp_hw_render" ] ; then
git remote set-branches origin " $TYPE "
git fetch --depth= 1 origin " $TYPE "
git checkout " $TYPE "
2017-11-11 01:44:42 +00:00
fi
2015-03-18 03:46:52 +00:00
2017-11-11 01:44:42 +00:00
if [ " ${ TYPE } " = "PROJECT" ] ; then
FORCE_ORIG = $FORCE
OLDBUILD = $BUILD
2015-08-05 05:08:56 +00:00
2017-11-11 01:44:42 +00:00
if [ " ${ PREVCORE } " = "mame2014" ] && [ " ${ PREVBUILD } " = "YES" ] && [ " ${ NAME } " = "mess2014" ] ; then
FORCE = "YES"
BUILD = "YES"
fi
2015-08-17 01:25:22 +00:00
2017-11-11 01:44:42 +00:00
if [ " ${ PREVCORE } " = "mess2014" ] && [ " ${ PREVBUILD } " = "YES" ] && [ " ${ NAME } " = "ume2014" ] ; then
FORCE = "YES"
BUILD = "YES"
fi
2015-02-17 03:19:30 +00:00
2017-11-11 01:44:42 +00:00
if [ [ " ${ PREVCORE } " = = *fbalpha2012* ] ] && [ [ " ${ PREVBUILD } " = "YES" ] ] && [ [ " ${ NAME } " = = *fbalpha2012* ] ] ; then
FORCE = "YES"
BUILD = "YES"
fi
2015-02-17 03:19:30 +00:00
2017-11-11 01:44:42 +00:00
for core in bsnes bsnes_mercury; do
if [ " ${ PREVCORE } " = " $core " ] && [ " ${ PREVBUILD } " = "YES" ] ; then
if [ " ${ COMMAND } " = "BSNES" ] || [ " ${ COMMAND } " = "BSNES_JNI" ] ; then
2017-11-06 20:11:27 +00:00
FORCE = "YES"
BUILD = "YES"
fi
2017-11-11 01:44:42 +00:00
fi
done
2017-11-07 03:38:52 +00:00
2017-11-11 01:44:42 +00:00
for core in 81 emux_nes emux_sms fuse gw mame2010 mgba snes9x_next snes9x-next vba_next; do
if [ " ${ PREVCORE } " = " $core " ] && [ " ${ PREVBUILD } " = "YES" ] && [ " ${ NAME } " = " $core " ] ; then
FORCE = "YES"
BUILD = "YES"
fi
done
2017-11-11 15:28:51 +00:00
elif [ " ${ TYPE } " = "SUBMODULE" ] ; then
git submodule update --init --recursive
2015-02-17 03:19:30 +00:00
fi
2017-11-11 15:28:51 +00:00
cd " $WORK "
2017-11-06 23:21:13 +00:00
if [ " ${ BUILD } " = "YES" ] || [ " ${ FORCE } " = "YES" ] ; then
2015-09-15 18:38:35 +00:00
touch $TMPDIR /built-cores
2015-09-13 17:02:40 +00:00
CORES_BUILT = YES
2016-01-14 23:16:40 +00:00
echo " buildbot job: building $NAME "
2017-11-06 23:21:13 +00:00
case " ${ COMMAND } " in
GENERIC| CMAKE ) build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${ FORMAT_COMPILER_TARGET } " ${ ARGS } " ; ;
GENERIC_ALT ) build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${ FORMAT_COMPILER_TARGET_ALT } " ${ ARGS } " ; ;
LEIRADEL ) build_libretro_leiradel_makefile $NAME $DIR $SUBDIR $MAKEFILE ${ PLATFORM } " ${ ARGS } " ; ;
GENERIC_GL ) build_libretro_generic_gl_makefile $NAME $DIR $SUBDIR $MAKEFILE ${ FORMAT_COMPILER_TARGET } " ${ ARGS } " ; ;
GENERIC_JNI ) build_libretro_generic_jni $NAME $DIR $SUBDIR $MAKEFILE ${ FORMAT_COMPILER_TARGET_ALT } " ${ ARGS } " ; ;
BSNES_JNI ) build_libretro_bsnes_jni $NAME $DIR $SUBDIR $MAKEFILE ${ FORMAT_COMPILER_TARGET_ALT } " ${ ARGS } " ; ;
GENERIC_THEOS ) build_libretro_generic_theos $NAME $DIR $SUBDIR $MAKEFILE ${ FORMAT_COMPILER_TARGET_ALT } " ${ ARGS } " ; ;
BSNES ) build_libretro_bsnes $NAME $DIR " ${ ARGS } " $MAKEFILE ${ FORMAT_COMPILER_TARGET } ${ CXX11 } ; ;
HIGAN ) build_libretro_higan $NAME $DIR $SUBDIR $MAKEFILE $PLATFORM ${ FORMAT_COMPILER_TARGET } ${ CXX11 } " ${ ARGS } " ; ;
* ) : ; ;
esac
2015-03-09 12:23:17 +00:00
else
2016-01-14 23:16:40 +00:00
echo " buildbot job: building $NAME up-to-date "
2015-02-17 03:19:30 +00:00
fi
echo
2017-08-16 04:31:19 +00:00
echo -ne "buildbot job finished at: "
date
2015-02-17 03:19:30 +00:00
fi
cd " ${ BASE_DIR } "
PREVCORE = $NAME
PREVBUILD = $BUILD
2015-03-18 03:46:52 +00:00
BUILD = $OLDBUILD
2016-01-14 23:16:40 +00:00
FORCE = $FORCE_ORIG
2015-03-09 12:23:17 +00:00
done < $1
2014-11-06 00:25:06 +00:00
2016-03-18 04:06:49 +00:00
buildbot_pull( ) {
2016-03-18 04:22:20 +00:00
while read line; do
2015-03-10 19:25:22 +00:00
NAME = ` echo $line | cut -f 1 -d " " `
DIR = ` echo $line | cut -f 2 -d " " `
URL = ` echo $line | cut -f 3 -d " " `
TYPE = ` echo $line | cut -f 4 -d " " `
ENABLED = ` echo $line | cut -f 5 -d " " `
PARENTDIR = ` echo $line | cut -f 6 -d " " `
2015-02-17 03:19:30 +00:00
2016-03-18 04:06:49 +00:00
if [ " ${ ENABLED } " = "YES" ] ; then
2016-01-14 23:32:14 +00:00
echo " buildbot job: $jobid Processing $NAME "
2016-03-18 04:06:49 +00:00
echo
2015-02-17 03:19:30 +00:00
echo NAME: $NAME
echo DIR: $DIR
echo PARENT: $PARENTDIR
echo URL: $URL
echo REPO TYPE: $TYPE
echo ENABLED: $ENABLED
ARGS = ""
2017-11-07 03:38:52 +00:00
for number in { 9..14} ; do
TEMP = " $( echo " $line " | cut -f " $number " -d " " ) "
if [ -n " ${ TEMP } " ] ; then
ARGS = " ${ ARGS } ${ TEMP } "
fi
done
2015-02-17 03:19:30 +00:00
2017-11-07 03:38:52 +00:00
ARGS = " ${ ARGS # } "
2015-02-17 03:19:30 +00:00
ARGS = " ${ ARGS % " ${ ARGS ##*[![ : space : ]] } " } "
2016-03-18 04:06:49 +00:00
if [ -d " ${ PARENTDIR } / ${ DIR } /.git " ] ; then
2015-02-17 03:19:30 +00:00
cd $PARENTDIR
cd $DIR
2017-03-15 17:20:56 +00:00
if [ -f .forcebuild ] ; then
echo " found .forcebuild file, building $NAME "
BUILD = "YES"
fi
2017-03-09 06:01:59 +00:00
echo " pulling changes from repo $URL ... "
2015-09-15 04:11:34 +00:00
OUT = ` git pull`
2016-03-18 03:26:09 +00:00
echo $OUT
2017-03-18 02:19:04 +00:00
2016-03-18 03:26:09 +00:00
if [ " ${ TYPE } " = "PROJECT" ] ; then
RADIR = $DIR
2017-03-15 17:20:56 +00:00
if [ [ $OUT = = *"Already up-to-date" * ] ] && [ ! " ${ BUILD } " = "YES" ] ; then
2016-03-18 03:26:09 +00:00
BUILD = "NO"
else
2017-04-10 04:58:49 +00:00
echo " resetting repo state $URL ... "
2017-04-16 16:36:01 +00:00
git reset --hard FETCH_HEAD
2017-04-10 04:58:49 +00:00
git clean -xdf
2016-03-18 03:26:09 +00:00
BUILD = "YES"
fi
elif [ " ${ TYPE } " = "SUBMODULE" ] ; then
2015-02-17 03:19:30 +00:00
RADIR = $DIR
2017-03-15 17:20:56 +00:00
if [ [ $OUT = = *"Already up-to-date" * ] ] && [ ! " ${ BUILD } " = "YES" ] ; then
2015-02-17 03:19:30 +00:00
BUILD = "NO"
else
2017-04-10 04:58:49 +00:00
echo " resetting repo state $URL ... "
2017-04-16 16:36:01 +00:00
git reset --hard FETCH_HEAD
2017-04-10 04:58:49 +00:00
git clean -xdf
2015-02-17 03:19:30 +00:00
BUILD = "YES"
2016-03-21 19:12:39 +00:00
git submodule update --init --recursive
2016-05-16 05:12:49 +00:00
#git submodule foreach git pull origin master
2015-02-17 03:19:30 +00:00
fi
fi
2015-10-21 22:18:38 +00:00
cd $WORK
2015-02-17 03:19:30 +00:00
else
2017-03-09 06:01:59 +00:00
echo " cloning repo $URL ... "
2015-02-17 03:19:30 +00:00
cd $PARENTDIR
2016-03-25 21:36:33 +00:00
if [ ! -z " $BRANCH " -a " ${ NAME } " = = "retroarch" ] ; then
2017-04-15 23:33:30 +00:00
git clone " $URL " " $DIR "
2017-04-15 23:41:39 +00:00
cd $DIR
2017-04-15 23:33:30 +00:00
git checkout " $BRANCH "
2017-04-15 21:52:36 +00:00
elif [ ! -z " $GIT_BRANCH " ] ; then
2017-04-15 18:02:54 +00:00
git clone -b " $GIT_BRANCH " " $URL " " $DIR " --depth= 1
2017-04-15 21:52:36 +00:00
else
git clone -b master " $URL " " $DIR " --depth= 1
2016-03-22 22:36:43 +00:00
fi
2016-03-23 17:20:23 +00:00
cd $WORK
2016-03-18 03:26:09 +00:00
if [ " ${ TYPE } " = "PROJECT" ] ; then
2015-02-17 03:19:30 +00:00
BUILD = "YES"
RADIR = $DIR
2016-03-18 03:26:09 +00:00
elif [ " ${ TYPE } " = = "SUBMODULE" ] ; then
cd $PARENTDIR
cd $DIR
RADIR = $DIR
echo "updating submodules..."
2016-03-21 19:13:18 +00:00
git submodule update --init --recursive
2016-05-16 05:12:49 +00:00
#git submodule foreach git pull origin master
2016-03-18 03:26:09 +00:00
BUILD = "YES"
2015-02-17 03:19:30 +00:00
fi
cd $WORK
fi
fi
echo
2016-03-23 17:20:23 +00:00
echo RADIR = $RADIR
2016-03-18 04:13:41 +00:00
done < $RECIPE .ra
2016-03-25 21:36:33 +00:00
cd $WORK
2016-03-18 04:06:49 +00:00
}
2017-01-07 06:36:33 +00:00
compile_audio_filters( )
{
HELPER = $1
MAKE = $2
echo "compiling audio filters"
2017-01-09 11:32:32 +00:00
cd libretro-common/audio/dsp_filters
2017-01-07 06:36:33 +00:00
echo " audio filter BUILD CMD: ${ HELPER } ${ MAKE } "
${ HELPER } ${ MAKE }
if [ $? -eq 0 ] ; then
echo buildbot job: $jobid audio filter build success!
else
echo buildbot job: $jobid audio filter: [ status: fail] !
fi
2017-01-13 02:16:08 +00:00
cd ..
cd ..
2017-01-07 06:36:33 +00:00
}
compile_video_filters( )
{
HELPER = $1
MAKE = $2
echo "compiling video filters"
cd gfx/video_filters
echo " audio filter BUILD CMD: ${ HELPER } ${ MAKE } "
${ HELPER } ${ MAKE }
if [ $? -eq 0 ] ; then
2017-06-05 01:05:51 +00:00
echo buildbot job: $jobid video filter build success!
2017-01-07 06:36:33 +00:00
else
2017-06-05 01:05:51 +00:00
echo buildbot job: $jobid video filter: [ status: fail] !
2017-01-07 06:36:33 +00:00
fi
2017-01-13 02:16:08 +00:00
cd ..
cd ..
2017-01-07 06:36:33 +00:00
}
2016-03-18 04:06:49 +00:00
echo " buildbot job: $jobid Building Retroarch- $PLATFORM "
echo --------------------------------------------------
echo
cd $WORK
BUILD = ""
2017-11-11 17:18:59 +00:00
echo WORKINGDIR = $PWD
echo RELEASE = $RELEASE
echo FORCE = $FORCE_RETROARCH_BUILD
echo RADIR = $RADIR
echo BRANCH = $BRANCH
buildbot_pull
2016-03-18 04:06:49 +00:00
2017-11-11 17:18:59 +00:00
if [ " ${ BUILD } " = "YES" ] || [ " ${ FORCE } " = "YES" ] || [ " ${ FORCE_RETROARCH_BUILD } " = "YES" ] || [ " ${ CORES_BUILT } " = "YES" ] ; then
cd " $RADIR "
git clean -xdf
2016-03-18 04:22:20 +00:00
echo WORKINGDIR = $PWD
echo RADIR = $RADIR
2016-12-31 20:31:30 +00:00
2017-11-11 17:18:59 +00:00
echo " buildbot job: $jobid Building "
echo
2016-03-18 03:35:16 +00:00
2017-11-11 17:18:59 +00:00
if [ -n " ${ LOGURL } " ] ; then
ENTRY_ID = " $( curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = "retroarch" http://buildbot.fiveforty.net/build_entry/) "
fi
fi
2015-03-09 12:23:17 +00:00
2017-11-11 17:18:59 +00:00
if [ " ${ PLATFORM } " = = "osx" ] && [ " ${ RA } " = = "YES" ] ; then
2017-10-20 17:15:06 +00:00
2017-11-11 17:18:59 +00:00
if [ " ${ BUILD } " = = "YES" -o " ${ FORCE } " = = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" -o " ${ CORES_BUILT } " = = "YES" ] ; then
2017-03-09 06:01:59 +00:00
2015-10-21 22:18:38 +00:00
cd pkg/apple
2016-01-14 23:43:18 +00:00
2016-12-31 20:31:30 +00:00
xcodebuild -project RetroArch.xcodeproj -target RetroArch -configuration Release | tee $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2015-07-03 14:40:27 +00:00
2017-10-20 17:15:06 +00:00
RET = $?
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2015-03-09 12:23:17 +00:00
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 19:12:03 +00:00
ENTRY_ID = ` curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = "retroarch" http://buildbot.fiveforty.net/build_entry/`
fi
2017-03-09 06:01:59 +00:00
2016-12-31 20:31:30 +00:00
xcodebuild -project RetroArch.xcodeproj -target "RetroArch Cg" -configuration Release | tee $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_CG_${ PLATFORM } .log
2015-10-21 16:02:46 +00:00
2017-10-20 17:15:06 +00:00
RET = $?
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_CG_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2015-10-21 22:18:38 +00:00
cd $WORK /$RADIR
echo "Packaging"
2015-02-17 03:19:30 +00:00
fi
2014-12-17 18:32:42 +00:00
fi
2015-10-21 22:18:38 +00:00
if [ " ${ PLATFORM } " = = "ios" ] && [ " ${ RA } " = = "YES" ] ; then
2015-02-17 03:19:30 +00:00
2015-10-21 22:18:38 +00:00
if [ " ${ BUILD } " = = "YES" -o " ${ FORCE } " = = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" -o " ${ CORES_BUILT } " = = "YES" ] ; then
2017-03-09 06:01:59 +00:00
2015-10-21 22:18:38 +00:00
cd pkg/apple
2016-12-31 20:31:30 +00:00
xcodebuild clean build CODE_SIGN_IDENTITY = "" CODE_SIGNING_REQUIRED = NO -project RetroArch_iOS.xcodeproj -configuration Release & > $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2015-06-17 04:28:53 +00:00
2017-10-20 17:15:06 +00:00
RET = $?
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2015-06-17 04:28:53 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2015-10-21 22:18:38 +00:00
cd $WORK /$RADIR
2015-04-07 04:57:26 +00:00
2015-10-21 22:18:38 +00:00
echo "Packaging"
2015-03-25 02:15:09 +00:00
2015-10-21 22:18:38 +00:00
fi
fi
2015-03-25 02:15:09 +00:00
2015-04-16 16:40:42 +00:00
2015-10-28 23:42:23 +00:00
if [ " ${ PLATFORM } " = = "ios9" ] && [ " ${ RA } " = = "YES" ] ; then
if [ " ${ BUILD } " = = "YES" -o " ${ FORCE } " = = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" -o " ${ CORES_BUILT } " = = "YES" ] ; then
2017-03-09 06:01:59 +00:00
2015-10-28 23:42:23 +00:00
cd pkg/apple
2016-12-31 20:31:30 +00:00
xcodebuild clean build CODE_SIGN_IDENTITY = "" CODE_SIGNING_REQUIRED = NO -project RetroArch_iOS.xcodeproj -configuration Release -target "RetroArch iOS9" & > $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2015-10-28 23:42:23 +00:00
2017-10-20 17:15:06 +00:00
RET = $?
if [ $RET -eq 0 ] ; then
2016-12-28 16:17:26 +00:00
touch $TMPDIR /built-frontend
2015-10-30 06:23:19 +00:00
cd build/Release-iphoneos
security unlock-keychain -p buildbot /Users/buildbot/Library/Keychains/login.keychain
2015-10-30 06:50:30 +00:00
codesign -fs "buildbot" RetroArch.app
2015-10-28 23:42:23 +00:00
fi
2017-10-20 17:15:06 +00:00
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2015-10-28 23:42:23 +00:00
cd $WORK /$RADIR
echo "Packaging"
fi
fi
2015-10-21 22:18:38 +00:00
if [ " ${ PLATFORM } " = "android" ] && [ " ${ RA } " = "YES" ] ; then
2015-10-28 23:42:23 +00:00
2016-03-18 04:06:49 +00:00
if [ " ${ BUILD } " = "YES" -o " ${ FORCE } " = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" ] ; then
2017-11-11 17:18:59 +00:00
2017-04-15 22:12:40 +00:00
#${HELPER} ${MAKE} -f Makefile.griffin shaders-convert-glsl PYTHON3=$PYTHON
2015-02-26 01:32:07 +00:00
2016-03-18 04:06:49 +00:00
echo " buildbot job: $jobid processing assets "
echo
2015-02-26 01:32:07 +00:00
2016-03-18 04:06:49 +00:00
rm -rf pkg/android/phoenix/assets/assets
rm -rf pkg/android/phoenix/assets/cores
rm -rf pkg/android/phoenix/assets/info
rm -rf pkg/android/phoenix/assets/overlays
rm -rf pkg/android/phoenix/assets/shaders/shaders_glsl/
rm -rf pkg/android/phoenix/assets/database
rm -rf pkg/android/phoenix/assets/autoconfig
rm -rf pkg/android/phoenix/assets/cheats
rm -rf pkg/android/phoenix/assets/playlists
rm -rf pkg/android/phoenix/assets/dowloads
rm -rf pkg/android/phoenix/assets/remaps
rm -rf pkg/android/phoenix/assets/system
2015-10-21 22:18:38 +00:00
mkdir -p pkg/android/phoenix/assets
mkdir -p pkg/android/phoenix/assets/
mkdir -p pkg/android/phoenix/assets/assets
2017-07-31 17:15:57 +00:00
mkdir -p pkg/android/phoenix/assets/assets/xmb/monochrome
2015-10-21 22:18:38 +00:00
mkdir -p pkg/android/phoenix/assets/cores
mkdir -p pkg/android/phoenix/assets/info
mkdir -p pkg/android/phoenix/assets/overlays
2016-01-13 15:22:13 +00:00
mkdir -p pkg/android/phoenix/assets/shaders/shaders_glsl
mkdir -p pkg/android/phoenix/assets/database/cursors
mkdir -p pkg/android/phoenix/assets/database/rdb
2015-10-21 22:18:38 +00:00
mkdir -p pkg/android/phoenix/assets/autoconfig
mkdir -p pkg/android/phoenix/assets/cheats
mkdir -p pkg/android/phoenix/assets/playlists
mkdir -p pkg/android/phoenix/assets/dowloads
mkdir -p pkg/android/phoenix/assets/remaps
mkdir -p pkg/android/phoenix/assets/saves/
mkdir -p pkg/android/phoenix/assets/states/
mkdir -p pkg/android/phoenix/assets/system/
2015-11-28 02:04:43 +00:00
mkdir -p pkg/android/phoenix/assets/filters/video
mkdir -p pkg/android/phoenix/assets/filters/audio
2016-01-12 18:36:22 +00:00
2016-03-02 04:58:42 +00:00
cp -rf media/assets/glui pkg/android/phoenix/assets/assets/
2017-07-31 17:15:57 +00:00
cp -rf media/assets/xmb/monochrome pkg/android/phoenix/assets/assets/xmb
2015-10-28 02:37:32 +00:00
cp -rf media/assets/zarch pkg/android/phoenix/assets/assets/
2017-03-07 05:30:00 +00:00
cp -rf media/assets/s* pkg/android/phoenix/assets/assets/
2015-10-21 22:18:38 +00:00
cp -rf media/autoconfig/* pkg/android/phoenix/assets/autoconfig/
cp -rf media/overlays/* pkg/android/phoenix/assets/overlays/
2016-01-13 15:22:13 +00:00
cp -rf media/shaders_glsl/* pkg/android/phoenix/assets/shaders/shaders_glsl/
cp -rf media/libretrodb/cursors/* pkg/android/phoenix/assets/database/cursors/
cp -rf media/libretrodb/rdb/* pkg/android/phoenix/assets/database/rdb/
2017-01-09 11:32:32 +00:00
cp -rf libretro-common/audio/dsp_filters/*.dsp pkg/android/phoenix/assets/filters/audio/
2015-11-28 02:04:43 +00:00
cp -rf gfx/video_filters/*.filt pkg/android/phoenix/assets/filters/video/
2017-04-15 23:08:24 +00:00
find pkg/android/phoenix/assets/assets/ -type d -name src -exec rm -rf { } \;
2015-11-28 02:04:43 +00:00
2016-01-13 15:22:13 +00:00
2017-04-15 23:08:24 +00:00
#cp -rf media/shaders_glsl $TMPDIR/
2016-03-02 05:11:49 +00:00
touch pkg/android/phoenix/assets/cheats/.empty-folder
touch pkg/android/phoenix/assets/saves/.empty-folder
touch pkg/android/phoenix/assets/states/.empty-folder
touch pkg/android/phoenix/assets/system/.empty-folder
2015-10-21 22:18:38 +00:00
cp -rf $RARCH_DIR /info/* pkg/android/phoenix/assets/info/
2016-01-14 23:32:14 +00:00
echo " buildbot job: $jobid Building "
2015-09-13 16:37:15 +00:00
echo
2015-10-21 22:18:38 +00:00
cd pkg/android/phoenix
rm bin/*.apk
2016-02-23 17:13:07 +00:00
cat << EOF > local.properties
2016-02-20 18:59:34 +00:00
sdk.dir= /home/buildbot/tools/android/android-sdk-linux
key.store= /home/buildbot/.android/release.keystore
key.alias= buildbot
key.store.password= buildbot
key.alias.password= buildbot
2016-03-02 05:13:43 +00:00
2016-02-20 18:59:34 +00:00
EOF
2015-02-26 01:32:07 +00:00
2016-03-05 18:13:31 +00:00
if [ " ${ RELEASE } " = = "NO" ] ; then
python ./version_increment.py
2016-03-18 03:35:16 +00:00
else
2016-03-18 04:22:20 +00:00
git reset --hard
2016-03-05 18:13:31 +00:00
fi
2016-12-31 20:31:30 +00:00
ant clean | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
android update project --path . --target android-24 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
android update project --path libs/googleplay --target android-24 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
android update project --path libs/appcompat --target android-24 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
ant release | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2016-03-22 22:44:32 +00:00
if [ -z " $BRANCH " ] ; then
2016-12-31 20:31:30 +00:00
cp -rv bin/retroarch-release.apk $RARCH_DIR /retroarch-release.apk | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2016-03-22 22:44:32 +00:00
cp -rv bin/retroarch-release.apk $RARCH_DIR /retroarch-release.apk
2016-03-22 23:13:33 +00:00
else
2017-07-24 17:05:01 +00:00
cp -rv bin/retroarch-release.apk $RARCH_DIR /retroarch-$BRANCH -release.apk | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
cp -rv bin/retroarch-release.apk $RARCH_DIR /retroarch-$BRANCH -release.apk
2016-03-22 22:44:32 +00:00
fi
2017-10-20 17:15:06 +00:00
RET = $?
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2016-02-23 17:19:16 +00:00
2017-10-20 17:15:06 +00:00
if [ $RET -eq 0 ] ; then
2016-12-28 16:17:26 +00:00
touch $TMPDIR /built-frontend
2016-02-10 00:30:13 +00:00
fi
2017-10-20 17:15:06 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2015-02-26 01:32:07 +00:00
fi
fi
2015-10-23 07:22:01 +00:00
if [ " ${ PLATFORM } " = "MINGW64" ] || [ " ${ PLATFORM } " = "MINGW32" ] || [ " ${ PLATFORM } " = "windows" ] && [ " ${ RA } " = "YES" ] ; then
2016-03-18 04:10:46 +00:00
2015-10-21 22:18:38 +00:00
if [ " ${ BUILD } " = "YES" -o " ${ FORCE } " = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" ] ; then
2017-03-09 06:01:59 +00:00
2017-01-07 06:36:33 +00:00
compile_audio_filters ${ HELPER } ${ MAKE }
2017-01-13 02:34:15 +00:00
cd $RADIR
2017-01-07 06:36:33 +00:00
compile_video_filters ${ HELPER } ${ MAKE }
2017-01-13 02:34:15 +00:00
cd $RADIR
2015-03-11 02:38:12 +00:00
2015-10-21 22:18:38 +00:00
echo "configuring..."
echo " configure command: $CONFIGURE $ARGS "
${ CONFIGURE } ${ ARGS }
2015-03-11 02:38:12 +00:00
2015-10-21 22:18:38 +00:00
echo "cleaning up..."
2016-08-28 03:49:49 +00:00
echo " CLEANUP CMD: ${ HELPER } ${ MAKE } clean "
${ HELPER } ${ MAKE } clean
2016-12-31 20:31:30 +00:00
2016-06-05 00:56:19 +00:00
rm -rf windows
mkdir -p windows
2015-03-11 02:38:12 +00:00
2015-10-21 22:18:38 +00:00
if [ $? -eq 0 ] ; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid retroarch cleanup success!
2015-10-21 22:18:38 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid retroarch cleanup failed!
2015-03-11 02:38:12 +00:00
fi
2015-10-21 22:18:38 +00:00
if [ $? -eq 0 ] ; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid retroarch configure success!
2015-03-11 02:38:12 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid retroarch configure failed!
2015-03-11 02:38:12 +00:00
fi
2015-10-21 22:18:38 +00:00
echo "building..."
2016-08-28 03:49:49 +00:00
echo " BUILD CMD: ${ HELPER } ${ MAKE } -j ${ JOBS } "
2016-12-31 20:31:30 +00:00
${ HELPER } ${ MAKE } -j${ JOBS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-03-14 07:16:57 +00:00
if [ -n ${ CUSTOM_BUILD } ] ; then
${ CUSTOM_BUILD } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
fi
2015-10-21 22:18:38 +00:00
strip -s retroarch.exe
2017-03-15 14:22:17 +00:00
cp -v retroarch.exe.manifest windows/retroarch.exe.manifest 2>/dev/null
2016-12-31 20:31:30 +00:00
cp -v retroarch.exe windows/retroarch.exe | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2016-06-04 16:27:25 +00:00
cp -v retroarch.exe windows/retroarch.exe
2016-12-31 20:31:30 +00:00
2016-06-05 00:47:00 +00:00
status = $?
2016-06-05 00:45:36 +00:00
echo $status
2015-06-17 04:28:53 +00:00
2017-10-20 17:15:06 +00:00
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $status " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
2016-06-05 00:45:36 +00:00
if [ $status -eq 0 ] ; then
2016-12-28 16:20:06 +00:00
touch $TMPDIR /built-frontend
2017-10-20 17:15:06 +00:00
echo buildbot job: $MESSAGE >>$TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2016-06-04 16:27:25 +00:00
2016-08-28 03:49:49 +00:00
${ HELPER } ${ MAKE } clean
2016-12-31 20:53:13 +00:00
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 17:15:06 +00:00
ENTRY_ID = ` curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = "retroarch-debug" http://buildbot.fiveforty.net/build_entry/`
fi
2017-03-09 06:01:59 +00:00
2017-03-15 14:22:17 +00:00
${ HELPER } ${ MAKE } -j${ JOBS } DEBUG = 1 GL_DEBUG = 1 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_DEBUG_${ PLATFORM } .log
2016-12-29 05:05:52 +00:00
for i in $( seq 3) ; do for bin in $( ntldd -R *exe | grep -i mingw | cut -d">" -f2 | cut -d" " -f2) ; do cp -vu " $bin " . ; done ; done
2016-12-24 21:12:37 +00:00
2017-03-14 18:28:54 +00:00
if [ -n ${ CUSTOM_BUILD_DEBUG } ] ; then
2017-03-15 14:22:17 +00:00
${ CUSTOM_BUILD_DEBUG } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_DEBUG_${ PLATFORM } .log
2017-03-14 18:28:54 +00:00
fi
2017-03-15 14:22:17 +00:00
cp -v retroarch.exe.manifest windows/retroarch_debug.exe.manifest 2>/dev/null
cp -v retroarch.exe windows/retroarch_debug.exe | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_DEBUG_${ PLATFORM } .log
2016-12-24 17:11:13 +00:00
cp -v *.dll windows/
2016-06-04 18:09:58 +00:00
cp -v retroarch.exe windows/retroarch_debug.exe
2017-03-09 06:01:59 +00:00
2017-10-20 17:15:06 +00:00
status = $?
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_DEBUG_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $status " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
if [ $status -eq 0 ] ; then
2016-06-04 16:27:25 +00:00
MESSAGE = " retroarch debug: [status: done] [ $jobid ] "
2017-10-20 17:15:06 +00:00
echo buildbot job: $MESSAGE >>$TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_DEBUG_${ PLATFORM } .log
2017-03-15 14:22:17 +00:00
buildbot_log " $MESSAGE "
else
2017-10-20 17:15:06 +00:00
MESSAGE = " retroarch-debug: [status: fail] [ $jobid ] "
echo buildbot job: $MESSAGE >>$TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_DEBUG_${ PLATFORM } .log
2016-06-04 16:27:25 +00:00
fi
2017-03-15 14:22:17 +00:00
ENTRY_ID = ""
2015-10-21 22:18:38 +00:00
echo "Packaging"
cp retroarch.cfg retroarch.default.cfg
mkdir -p windows/filters
mkdir -p windows/filters/video
mkdir -p windows/filters/audio
2016-04-30 19:41:08 +00:00
mkdir -p windows/saves
mkdir -p windows/states
mkdir -p windows/system
2016-05-01 17:35:17 +00:00
mkdir -p windows/screenshots
2016-04-30 12:15:44 +00:00
2015-10-21 22:18:38 +00:00
cp -v retroarch.default.cfg windows/
2016-06-04 16:27:25 +00:00
cp -v tools/*.exe windows/
2017-01-09 11:32:32 +00:00
cp -rf libretro-common/audio/dsp_filters/*.dll windows/filters/audio
cp -rf libretro-common/audio/dsp_filters/*.dsp windows/filters/audio
2015-10-21 22:18:38 +00:00
cp -rf gfx/video_filters/*.dll windows/filters/video
cp -rf gfx/video_filters/*.filt windows/filters/video
2015-10-28 23:42:23 +00:00
2015-09-13 16:52:57 +00:00
else
2017-10-20 17:15:06 +00:00
MESSAGE = " retroarch: [status: fail] [ $jobid ] "
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2017-10-20 17:15:06 +00:00
echo buildbot job: $MESSAGE >>$TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2015-03-11 02:38:12 +00:00
fi
fi
fi
2015-10-21 22:18:38 +00:00
if [ " ${ PLATFORM } " = "psp1" ] && [ " ${ RA } " = "YES" ] ; then
2015-09-07 19:39:28 +00:00
2015-09-13 17:02:40 +00:00
if [ " ${ BUILD } " = = "YES" -o " ${ FORCE } " = = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" -o " ${ CORES_BUILT } " = = "YES" ] ; then
2016-12-31 20:31:30 +00:00
2015-09-13 16:54:11 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR /*.a .
2015-09-07 19:39:28 +00:00
2017-08-07 23:39:22 +00:00
time sh ./dist-cores.sh psp1 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-10-20 17:15:06 +00:00
RET = ${ PIPESTATUS [0] }
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
if [ $RET -eq 0 ] ; then
2016-12-28 16:20:06 +00:00
touch $TMPDIR /built-frontend
2015-09-07 19:39:28 +00:00
fi
2017-10-20 17:15:06 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2015-09-07 19:39:28 +00:00
echo "Packaging"
2016-01-14 23:32:14 +00:00
2015-10-21 22:18:38 +00:00
cd $WORK /$RADIR
2015-09-07 19:39:28 +00:00
cp retroarch.cfg retroarch.default.cfg
2015-10-21 22:18:38 +00:00
mkdir -p pkg/psp1/
2016-09-04 05:00:22 +00:00
mkdir -p pkg/psp1/info
2016-09-04 04:59:16 +00:00
cp -v $RARCH_DIST_DIR /../info/*.info pkg/psp1/info/
2015-10-21 22:18:38 +00:00
2015-09-07 19:39:28 +00:00
fi
fi
2015-10-21 22:18:38 +00:00
if [ " ${ PLATFORM } " = = "wii" ] && [ " ${ RA } " = = "YES" ] ; then
2016-12-31 20:31:30 +00:00
2015-10-21 22:18:38 +00:00
if [ " ${ BUILD } " = = "YES" -o " ${ FORCE } " = = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" -o " ${ CORES_BUILT } " = = "YES" ] ; then
2017-11-11 17:18:59 +00:00
touch $TMPDIR /built-frontend
2017-03-09 06:01:59 +00:00
2016-03-19 17:32:42 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR /*.a .
2015-10-21 22:18:38 +00:00
2017-08-07 23:39:22 +00:00
time sh ./dist-cores.sh wii 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-10-20 17:15:06 +00:00
RET = ${ PIPESTATUS [0] }
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2015-10-21 22:18:38 +00:00
echo "Packaging"
2016-01-14 23:32:14 +00:00
2016-03-19 17:32:42 +00:00
cd $WORK /$RADIR
2015-10-21 22:18:38 +00:00
cp retroarch.cfg retroarch.default.cfg
2016-03-19 17:32:42 +00:00
mkdir -p pkg/wii/
2015-10-21 22:18:38 +00:00
mkdir -p pkg/wii/cheats
mkdir -p pkg/wii/remaps
2016-03-19 17:32:42 +00:00
mkdir -p pkg/wii/overlays
2016-07-17 01:40:01 +00:00
cp -v $RARCH_DIST_DIR /../info/*.info pkg/
2015-10-21 22:18:38 +00:00
cp -rf media/overlays/wii/* pkg/wii/overlays
fi
fi
2016-11-07 20:53:03 +00:00
if [ " ${ PLATFORM } " = = "wiiu" ] && [ " ${ RA } " = = "YES" ] ; then
2016-12-31 20:31:30 +00:00
2016-11-07 20:53:03 +00:00
if [ " ${ BUILD } " = = "YES" -o " ${ FORCE } " = = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" -o " ${ CORES_BUILT } " = = "YES" ] ; then
2017-11-11 17:18:59 +00:00
touch $TMPDIR /built-frontend
2017-03-09 06:01:59 +00:00
2016-11-07 20:53:03 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR /*.a .
2016-11-07 21:21:48 +00:00
cp -v $RARCH_DIST_DIR /../info/*.info .
2016-11-07 21:25:51 +00:00
cp -v ../media/assets/pkg/wiiu/*.png .
2016-11-07 20:53:03 +00:00
2017-08-07 23:49:14 +00:00
time sh ./wiiu-cores.sh 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-10-20 17:15:06 +00:00
RET = ${ PIPESTATUS [0] }
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2016-11-07 20:53:03 +00:00
echo "Packaging"
cd $WORK /$RADIR
fi
fi
2015-10-21 22:18:38 +00:00
if [ " ${ PLATFORM } " = = "ngc" ] && [ " ${ RA } " = = "YES" ] ; then
2016-12-31 20:31:30 +00:00
2015-09-14 23:25:58 +00:00
if [ " ${ BUILD } " = = "YES" -o " ${ FORCE } " = = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" -o " ${ CORES_BUILT } " = = "YES" ] ; then
2017-10-20 17:15:06 +00:00
2017-11-11 17:18:59 +00:00
touch $TMPDIR /built-frontend
2017-03-09 06:01:59 +00:00
2015-09-14 23:25:58 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR /*.a .
2017-08-07 23:39:22 +00:00
time sh ./dist-cores.sh ngc 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-10-20 17:15:06 +00:00
RET = ${ PIPESTATUS [0] }
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2015-09-14 23:25:58 +00:00
echo "Packaging"
2016-01-14 23:32:14 +00:00
2016-03-19 17:32:42 +00:00
cd $WORK /$RADIR
2015-09-14 23:25:58 +00:00
cp retroarch.cfg retroarch.default.cfg
2015-10-21 22:18:38 +00:00
mkdir -p pkg/ngc/
mkdir -p pkg/ngc/cheats
mkdir -p pkg/ngc/remaps
mkdir -p pkg/ngc/overlays
2016-07-17 01:40:01 +00:00
cp -v $RARCH_DIST_DIR /../info/*.info pkg/
cp -rf media/overlays/ngc/* pkg/ngc/overlays
2015-09-14 23:25:58 +00:00
fi
fi
2015-10-21 22:18:38 +00:00
if [ " ${ PLATFORM } " = = "ctr" ] && [ " ${ RA } " = = "YES" ] ; then
2015-10-19 19:47:52 +00:00
if [ " ${ BUILD } " = = "YES" -o " ${ FORCE } " = = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" -o " ${ CORES_BUILT } " = = "YES" ] ; then
2017-10-20 17:15:06 +00:00
2017-11-11 17:18:59 +00:00
touch $TMPDIR /built-frontend
2017-03-09 06:01:59 +00:00
2015-10-21 22:18:38 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR /*.a .
2015-10-19 19:47:52 +00:00
2017-08-07 23:39:22 +00:00
time sh ./dist-cores.sh ctr 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-10-20 17:15:06 +00:00
RET = ${ PIPESTATUS [0] }
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2017-10-20 17:15:06 +00:00
2015-10-19 19:47:52 +00:00
cd $WORK /$RADIR
2016-03-23 17:28:58 +00:00
echo $PWD
2015-10-19 19:47:52 +00:00
echo "Packaging"
2016-01-14 23:32:14 +00:00
2015-10-21 22:18:38 +00:00
cp retroarch.cfg retroarch.default.cfg
2015-10-19 19:47:52 +00:00
2016-03-23 17:27:48 +00:00
mkdir -p $WORK /$RADIR /pkg/3ds/retroarch
2016-10-07 23:14:17 +00:00
mkdir -p $WORK /$RADIR /pkg/3ds/retroarch/cores
2016-10-08 05:16:45 +00:00
mkdir -p $WORK /$RADIR /pkg/3ds/retroarch/cores/info
2016-03-23 17:27:48 +00:00
mkdir -p $WORK /$RADIR /pkg/3ds/retroarch/remaps
mkdir -p $WORK /$RADIR /pkg/3ds/retroarch/cheats
mkdir -p $WORK /$RADIR /pkg/3ds/retroarch/filters
2016-03-23 17:35:32 +00:00
mkdir -p $WORK /$RADIR /pkg/3ds/retroarch/filters/audio
mkdir -p $WORK /$RADIR /pkg/3ds/retroarch/filters/video
2016-10-08 05:16:45 +00:00
mkdir -p $WORK /$RADIR /pkg/3ds/retroarch/database
mkdir -p $WORK /$RADIR /pkg/3ds/retroarch/database/rdb
mkdir -p $WORK /$RADIR /pkg/3ds/retroarch/database/cursors
2016-10-07 23:14:17 +00:00
2016-03-23 17:42:31 +00:00
cp -v $WORK /$RADIR /gfx/video_filters/*.filt $WORK /$RADIR /pkg/3ds/retroarch/filters/video/
2017-01-09 11:32:32 +00:00
cp -v $WORK /$RADIR /libretro-common/audio/dsp_filters/*.dsp $WORK /$RADIR /pkg/3ds/retroarch/filters/audio/
2016-10-07 23:14:17 +00:00
cp -v $RARCH_DIST_DIR /../info/*.info $WORK /$RADIR /pkg/3ds/retroarch/cores/info/
2016-10-08 05:16:45 +00:00
cp -v $WORK /$RADIR /media/libretrodb/rdb/*.rdb $WORK /$RADIR /pkg/3ds/retroarch/database/rdb/
cp -v $WORK /$RADIR /media/libretrodb/cursors/*.dbc $WORK /$RADIR /pkg/3ds/retroarch/database/cursors/
2016-10-10 21:46:50 +00:00
convert_xmb_assets $WORK /$RADIR /media/assets/xmb $WORK /$RADIR /pkg/3ds/retroarch/media/xmb 64x32! 400x240! 90
2015-10-19 19:47:52 +00:00
fi
fi
2015-10-21 22:18:38 +00:00
if [ " ${ PLATFORM } " = = "vita" ] && [ " ${ RA } " = = "YES" ] ; then
2015-10-21 21:57:27 +00:00
if [ " ${ BUILD } " = = "YES" -o " ${ FORCE } " = = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" -o " ${ CORES_BUILT } " = = "YES" ] ; then
2017-10-20 17:15:06 +00:00
2017-11-11 17:18:59 +00:00
touch $TMPDIR /built-frontend
2017-03-09 06:01:59 +00:00
2015-10-21 22:18:38 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR /*.a .
2016-08-29 00:38:39 +00:00
cp -v $RARCH_DIST_DIR /arm/*.a .
2015-10-21 21:57:27 +00:00
2017-08-07 23:39:22 +00:00
time sh ./dist-cores.sh vita 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-10-20 17:15:06 +00:00
RET = ${ PIPESTATUS [0] }
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2017-10-20 17:15:06 +00:00
2015-10-21 21:57:27 +00:00
echo "Packaging"
2016-01-14 23:32:14 +00:00
2016-03-19 17:32:42 +00:00
cd $WORK /$RADIR
2015-10-21 22:18:38 +00:00
cp retroarch.cfg retroarch.default.cfg
2015-10-21 21:57:27 +00:00
2015-10-21 22:18:38 +00:00
mkdir -p pkg/vita
mkdir -p pkg/vita/remaps
mkdir -p pkg/vita/cheats
cp -rf media/overlays/* pkg/vita/overlays/
2015-10-21 21:57:27 +00:00
fi
fi
2016-08-11 00:42:26 +00:00
if [ " ${ PLATFORM } " = = "ps3" ] && [ " ${ RA } " = = "YES" ] ; then
if [ " ${ BUILD } " = = "YES" -o " ${ FORCE } " = = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" -o " ${ CORES_BUILT } " = = "YES" ] ; then
2017-11-11 17:18:59 +00:00
touch $TMPDIR /built-frontend
2017-03-09 06:01:59 +00:00
2016-08-11 00:42:26 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR /*.a .
2017-08-07 23:39:22 +00:00
time sh ./dist-cores.sh dex-ps3 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } _dex.log
2017-10-20 17:15:06 +00:00
RET = ${ PIPESTATUS [0] }
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } _dex.log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch-dex" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
2017-10-20 19:12:03 +00:00
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 19:12:03 +00:00
ENTRY_ID = ` curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = "retroarch" http://buildbot.fiveforty.net/build_entry/`
fi
2017-10-20 17:15:06 +00:00
2017-08-07 23:39:22 +00:00
time sh ./dist-cores.sh cex-ps3 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } _cex.log
2017-10-20 17:15:06 +00:00
RET = ${ PIPESTATUS [0] }
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } _cex.log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch-cex" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
2017-10-20 19:59:50 +00:00
if [ -n " $LOGURL " ] ; then
2017-10-20 19:12:03 +00:00
ENTRY_ID = ` curl -X POST -d type = "start" -d master_log = " $MASTER_LOG_ID " -d platform = " $jobid " -d name = "retroarch" http://buildbot.fiveforty.net/build_entry/`
fi
2017-10-20 17:15:06 +00:00
2017-08-07 23:39:22 +00:00
time sh ./dist-cores.sh ode-ps3 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } _ode.log
2016-08-11 00:42:26 +00:00
2017-10-20 17:15:06 +00:00
RET = ${ PIPESTATUS [0] }
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } _ode.log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch-ode" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
ENTRY_ID = ""
2016-08-11 00:42:26 +00:00
fi
fi
2016-08-29 00:20:32 +00:00
if [ " ${ PLATFORM } " = "emscripten" ] && [ " ${ RA } " = "YES" ] ; then
if [ " ${ BUILD } " = = "YES" -o " ${ FORCE } " = = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" -o " ${ CORES_BUILT } " = = "YES" ] ; then
2017-10-20 17:15:06 +00:00
2017-11-11 17:18:59 +00:00
touch $TMPDIR /built-frontend
2017-03-09 06:01:59 +00:00
2016-08-29 00:20:32 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR /*.bc .
2016-12-31 20:31:30 +00:00
echo " BUILD CMD $HELPER ./dist-cores.sh emscripten " & > $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-08-07 23:39:22 +00:00
$HELPER ./dist-cores.sh emscripten 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-10-20 17:15:06 +00:00
RET = ${ PIPESTATUS [0] }
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $RET " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2017-03-09 06:01:59 +00:00
ENTRY_ID = ""
2016-08-29 00:20:32 +00:00
echo "Packaging"
cd $WORK /$RADIR
fi
fi
2016-11-24 02:20:46 +00:00
if [ " ${ PLATFORM } " = "unix" ] ; then
if [ " ${ BUILD } " = "YES" -o " ${ FORCE } " = "YES" -o " ${ FORCE_RETROARCH_BUILD } " = = "YES" ] ; then
2017-10-20 17:15:06 +00:00
2017-11-11 17:18:59 +00:00
touch $TMPDIR /built-frontend
2017-03-09 06:01:59 +00:00
compile_audio_filters ${ HELPER } ${ MAKE }
2017-01-14 04:42:11 +00:00
cd $RADIR
2017-01-07 06:36:33 +00:00
compile_video_filters ${ HELPER } ${ MAKE }
2017-01-14 04:42:11 +00:00
cd $RADIR
2016-11-24 02:20:46 +00:00
echo "configuring..."
echo " configure command: $CONFIGURE $ARGS "
${ CONFIGURE } ${ ARGS }
echo "cleaning up..."
echo " CLEANUP CMD: ${ HELPER } ${ MAKE } clean "
${ HELPER } ${ MAKE } clean
2016-12-31 20:31:30 +00:00
2016-11-24 02:20:46 +00:00
if [ $? -eq 0 ] ; then
echo buildbot job: $jobid retroarch cleanup success!
else
echo buildbot job: $jobid retroarch cleanup failed!
fi
echo "building..."
echo " BUILD CMD: ${ HELPER } ${ MAKE } -j ${ JOBS } "
2016-12-31 20:31:30 +00:00
${ HELPER } ${ MAKE } -j${ JOBS } 2>& 1 | tee -a $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2016-11-24 02:20:46 +00:00
status = $?
echo $status
2017-10-20 17:15:06 +00:00
ERROR = $TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2017-11-01 04:07:48 +00:00
buildbot_handle_message " $status " " $ENTRY_ID " "retroarch" " $jobid " " $ERROR "
2017-10-20 17:15:06 +00:00
2016-11-24 02:20:46 +00:00
if [ $status -eq 0 ] ; then
MESSAGE = " retroarch: [status: done] [ $jobid ] "
2017-10-20 17:15:06 +00:00
echo buildbot job: $MESSAGE >>$TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2016-11-24 02:20:46 +00:00
echo "Packaging"
else
2017-10-20 17:15:06 +00:00
MESSAGE = " retroarch: [status: fail] [ $jobid ] "
echo buildbot job: $MESSAGE >>$TMPDIR /log/${ BOT } /${ LOGDATE } /${ LOGDATE } _RetroArch_${ PLATFORM } .log
2016-11-24 02:20:46 +00:00
fi
fi
fi
2015-09-07 19:39:28 +00:00
2014-11-08 20:28:26 +00:00
PATH = $ORIGPATH