2015-04-11 21:22:12 +00:00
|
|
|
|
2015-02-17 03:19:30 +00:00
|
|
|
# vim: set ts=3 sw=3 noet ft=sh : bash
|
2014-11-06 00:25:06 +00:00
|
|
|
|
2014-11-06 03:40:39 +00:00
|
|
|
####usage:
|
2014-11-06 00:25:06 +00:00
|
|
|
# ./libretro-fetch-and-build.sh configfile
|
|
|
|
# if you want to force all enabled cores to rebuild prepend FORCE=YES
|
|
|
|
# you may need to specify your make command by prepending it to the commandline, for instance MAKE=mingw32-make
|
|
|
|
#
|
2014-12-06 18:46:21 +00:00
|
|
|
# eg: FORCE=YES MAKE=mingw32-make ./libretro-fetch-and-build.sh buildbot
|
2014-11-06 00:25:06 +00:00
|
|
|
|
2014-11-06 03:40:39 +00:00
|
|
|
####environment configuration:
|
2015-01-29 03:22:06 +00:00
|
|
|
echo "BUILDBOT JOB: Setting up Environment for $1"
|
2015-03-07 00:11:33 +00:00
|
|
|
echo
|
2014-11-08 20:28:26 +00:00
|
|
|
|
2015-07-26 01:07:54 +00:00
|
|
|
LOGDATE=${LOGDATE}
|
2014-11-08 20:28:26 +00:00
|
|
|
ORIGPATH=$PATH
|
2014-12-17 23:59:08 +00:00
|
|
|
WORK=$PWD
|
2015-07-21 05:31:15 +00:00
|
|
|
OLDFORCE=YES
|
2014-11-08 20:28:26 +00:00
|
|
|
|
|
|
|
echo Original PATH: $PATH
|
|
|
|
|
|
|
|
while read line; do
|
2015-03-10 19:25:22 +00:00
|
|
|
KEY=`echo $line | cut -f 1 -d " "`
|
|
|
|
VALUE=`echo $line | cut -f 2 -d " "`
|
2015-02-17 03:19:30 +00:00
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${KEY}" = "PATH" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
export PATH=${VALUE}:${ORIGPATH}
|
|
|
|
echo New PATH: $PATH
|
|
|
|
else
|
|
|
|
export ${KEY}=${VALUE}
|
|
|
|
echo $KEY: $VALUE
|
|
|
|
fi
|
2015-03-09 12:23:17 +00:00
|
|
|
done < $1.conf
|
2014-12-06 18:46:21 +00:00
|
|
|
echo
|
|
|
|
echo
|
2014-11-08 20:28:26 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
. $WORK/libretro-config.sh
|
2014-11-06 00:25:06 +00:00
|
|
|
|
2014-11-06 05:34:54 +00:00
|
|
|
echo
|
|
|
|
[[ "${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...'
|
|
|
|
|
2014-11-06 03:40:39 +00:00
|
|
|
# BSDs don't have readlink -f
|
|
|
|
read_link()
|
|
|
|
{
|
2015-02-17 03:19:30 +00:00
|
|
|
TARGET_FILE="$1"
|
|
|
|
cd $(dirname "$TARGET_FILE")
|
|
|
|
TARGET_FILE=$(basename "$TARGET_FILE")
|
2015-03-09 12:23:17 +00:00
|
|
|
while [ -L "$TARGET_FILE" ]; do
|
2015-02-17 03:19:30 +00:00
|
|
|
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
|
2014-11-06 03:40:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SCRIPT=$(read_link "$0")
|
|
|
|
echo "SCRIPT: $SCRIPT"
|
|
|
|
BASE_DIR=$(dirname "$SCRIPT")
|
|
|
|
if [ -z "$RARCH_DIST_DIR" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
RARCH_DIR="$BASE_DIR/dist"
|
|
|
|
RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR"
|
2014-11-06 03:40:39 +00:00
|
|
|
fi
|
|
|
|
|
2014-12-31 21:09:22 +00:00
|
|
|
mkdir -v -p "$RARCH_DIST_DIR"
|
2014-12-23 23:11:56 +00:00
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${PLATFORM}" = "android" ]; then
|
2015-03-09 12:23:17 +00:00
|
|
|
IFS=' ' read -ra ABIS <<< "$TARGET_ABIS"
|
|
|
|
for a in "${ABIS[@]}"; do
|
2015-02-17 03:19:30 +00:00
|
|
|
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
|
2015-03-09 12:23:17 +00:00
|
|
|
done
|
2014-12-23 23:11:56 +00:00
|
|
|
fi
|
2014-12-23 21:53:38 +00:00
|
|
|
|
2014-11-06 03:40:39 +00:00
|
|
|
if [ "$HOST_CC" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
CC="${HOST_CC}-gcc"
|
|
|
|
CXX="${HOST_CC}-g++"
|
|
|
|
CXX11="${HOST_CC}-g++"
|
|
|
|
STRIP="${HOST_CC}-strip"
|
2014-11-06 03:40:39 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ -z "$MAKE" ]; then
|
2015-03-09 12:23:17 +00:00
|
|
|
if uname -s | grep -i MINGW32 > /dev/null 2>&1; then
|
2015-02-17 03:19:30 +00:00
|
|
|
MAKE=mingw32-make
|
|
|
|
else
|
|
|
|
if type gmake > /dev/null 2>&1; then
|
|
|
|
MAKE=gmake
|
|
|
|
else
|
|
|
|
MAKE=make
|
|
|
|
fi
|
2015-03-09 12:23:17 +00:00
|
|
|
fi
|
2014-11-06 03:40:39 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ -z "$CC" ]; then
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
CC=cc
|
2015-03-09 12:23:17 +00:00
|
|
|
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
|
2015-02-17 03:19:30 +00:00
|
|
|
CC=mingw32-gcc
|
2015-03-09 12:23:17 +00:00
|
|
|
else
|
2015-02-17 03:19:30 +00:00
|
|
|
CC=gcc
|
2015-03-09 12:23:17 +00:00
|
|
|
fi
|
2014-11-06 03:40:39 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$CXX" ]; then
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
CXX=c++
|
|
|
|
CXX11="clang++ -std=c++11 -stdlib=libc++"
|
2015-03-09 12:23:17 +00:00
|
|
|
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
|
2015-02-17 03:19:30 +00:00
|
|
|
CXX=mingw32-g++
|
|
|
|
CXX11=mingw32-g++
|
2015-03-09 12:23:17 +00:00
|
|
|
else
|
2015-02-17 03:19:30 +00:00
|
|
|
CXX=g++
|
|
|
|
CXX11=g++
|
2015-03-09 12:23:17 +00:00
|
|
|
fi
|
2014-11-06 03:40:39 +00:00
|
|
|
fi
|
|
|
|
|
2014-12-06 18:46:21 +00:00
|
|
|
if [ "${CC}" ] && [ "${CXX}" ]; then
|
2015-03-09 12:23:17 +00:00
|
|
|
COMPILER="CC=${CC} CXX=${CXX}"
|
2014-12-06 18:46:21 +00:00
|
|
|
else
|
2015-03-09 12:23:17 +00:00
|
|
|
COMPILER=""
|
2014-12-06 18:46:21 +00:00
|
|
|
fi
|
|
|
|
|
2014-11-06 03:40:39 +00:00
|
|
|
echo
|
|
|
|
echo "CC = $CC"
|
|
|
|
echo "CXX = $CXX"
|
|
|
|
echo "STRIP = $STRIP"
|
2014-12-06 18:46:21 +00:00
|
|
|
echo "COMPILER = $COMPILER"
|
2014-11-06 03:40:39 +00:00
|
|
|
echo
|
|
|
|
|
2014-12-07 17:42:11 +00:00
|
|
|
export CC=$CC
|
|
|
|
export CXX=$CXX
|
|
|
|
|
2014-11-06 05:34:54 +00:00
|
|
|
RESET_FORMAT_COMPILER_TARGET=$FORMAT_COMPILER_TARGET
|
|
|
|
RESET_FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET_ALT
|
|
|
|
|
|
|
|
check_opengl() {
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ "${BUILD_LIBRETRO_GL}" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
if [ "${ENABLE_GLES}" ]; then
|
|
|
|
echo '=== OpenGL ES enabled ==='
|
|
|
|
export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-gles"
|
|
|
|
export FORMAT_COMPILER_TARGET_ALT="${FORMAT_COMPILER_TARGET}"
|
|
|
|
else
|
|
|
|
echo '=== OpenGL enabled ==='
|
|
|
|
export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-opengl"
|
|
|
|
export FORMAT_COMPILER_TARGET_ALT="${FORMAT_COMPILER_TARGET}"
|
|
|
|
fi
|
2015-03-09 12:23:17 +00:00
|
|
|
else
|
2015-02-17 03:19:30 +00:00
|
|
|
echo '=== OpenGL disabled in build ==='
|
2015-03-09 12:23:17 +00:00
|
|
|
fi
|
2014-11-06 05:34:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
reset_compiler_targets() {
|
2015-03-09 12:23:17 +00:00
|
|
|
export FORMAT_COMPILER_TARGET=$RESET_FORMAT_COMPILER_TARGET
|
|
|
|
export FORMAT_COMPILER_TARGET_ALT=$RESET_FORMAT_COMPILER_TARGET_ALT
|
2014-11-06 05:34:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-11-06 03:40:39 +00:00
|
|
|
cd "${BASE_DIR}"
|
|
|
|
|
|
|
|
####build commands
|
2015-02-01 19:48:09 +00:00
|
|
|
buildbot_log() {
|
|
|
|
|
2015-03-06 00:50:45 +00:00
|
|
|
MESSAGE=`echo -e $1`
|
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
HASH=`echo -n "$MESSAGE" | openssl sha1 -hmac $SIG | cut -f 2 -d " "`
|
2015-03-06 00:50:45 +00:00
|
|
|
curl --data "message=$MESSAGE&sign=$HASH" $LOGURL
|
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
|
|
|
|
|
|
|
|
cd $DIR
|
|
|
|
cd $SUBDIR
|
2015-03-07 20:03:49 +00:00
|
|
|
OLDJ=$JOBS
|
2015-02-17 03:19:30 +00:00
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${NAME}" = "mame078" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
JOBS=1
|
|
|
|
fi
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
|
|
echo "cleaning up..."
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "cleanup command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean"
|
2015-03-09 12:23:17 +00:00
|
|
|
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean
|
|
|
|
if [ $? -eq 0 ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "compiling..."
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -z "${ARGS}" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}"
|
2015-07-26 01:07:54 +00:00
|
|
|
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} &> /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${NAME}" = "mame2010" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}" buildtools
|
2015-04-11 21:32:03 +00:00
|
|
|
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} buildtools
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}"
|
2015-07-26 01:07:54 +00:00
|
|
|
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} &>> /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
|
2015-03-25 02:15:09 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-04-11 21:22:12 +00:00
|
|
|
MESSAGE="$1 build successful [$jobid]"
|
2015-03-10 19:25:22 +00:00
|
|
|
if [ "${MAKEPORTABLE}" == "YES" ]; then
|
2015-04-11 22:37:45 +00:00
|
|
|
echo "$1 running retrolink [$jobid]"
|
2015-03-10 19:25:22 +00:00
|
|
|
$WORK/retrolink.sh ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
|
|
|
fi
|
2015-07-21 05:31:15 +00:00
|
|
|
if [ "${PLATFORM}" = "windows" ]; then
|
|
|
|
strip -s ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
|
|
|
fi
|
2015-07-26 01:07:54 +00:00
|
|
|
cp -v ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} &>> /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
|
2015-07-25 18:58:41 +00:00
|
|
|
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log | tail -n 100`
|
2015-07-21 05:31:15 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
2015-07-03 14:40:27 +00:00
|
|
|
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
2015-07-25 18:58:41 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-02-17 03:19:30 +00:00
|
|
|
buildbot_log "$MESSAGE"
|
|
|
|
JOBS=$OLDJ
|
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
|
|
|
|
|
|
|
|
cd $DIR
|
|
|
|
cd $SUBDIR
|
|
|
|
OLDJ=$JOBS
|
|
|
|
|
|
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
|
|
echo "cleaning up..."
|
2015-07-04 18:15:46 +00:00
|
|
|
echo "cleanup command: ${MAKE} -f ${MAKEFILE}.${ARGS} platform=${PLATFORM} -j${JOBS} ${ARGS} clean"
|
2015-06-17 23:49:20 +00:00
|
|
|
${MAKE} -f ${MAKEFILE}.${ARGS} platform=${PLATFORM} -j${JOBS} clean
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "compiling..."
|
2015-07-04 18:15:46 +00:00
|
|
|
echo "build command: ${MAKE} -f ${MAKEFILE}.${ARGS} platform=${PLATFORM} -j${JOBS}"
|
2015-07-26 01:07:54 +00:00
|
|
|
${MAKE} -f ${MAKEFILE}.${ARGS} platform=${PLATFORM} -j${JOBS} &> /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
|
2015-06-17 23:49:20 +00:00
|
|
|
|
2015-07-21 05:31:15 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
MESSAGE="$1 build successful [$jobid]"
|
|
|
|
if [ "${PLATFORM}" = "android" ]; then
|
2015-07-26 01:07:54 +00:00
|
|
|
cp -v ${NAME}_libretro${FORMAT}.${ARGS}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${ARGS}/${NAME}_libretro${SUFFIX}${FORMAT}.${FORMAT_EXT} &>> /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
|
2015-07-21 05:31:15 +00:00
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
cp -v ${NAME}_libretro${FORMAT}.${ARGS}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${NAME}_libretro${SUFFIX}${FORMAT}.${FORMAT_EXT} &>> /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
|
2015-07-21 05:31:15 +00:00
|
|
|
fi
|
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log | tail -n 100`
|
2015-07-21 05:31:15 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
|
|
|
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
2015-06-17 23:49:20 +00:00
|
|
|
fi
|
|
|
|
echo BUILDBOT JOB: $MESSAGE
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-06-17 23:49:20 +00:00
|
|
|
buildbot_log "$MESSAGE"
|
|
|
|
JOBS=$OLDJ
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-12-23 23:11:56 +00:00
|
|
|
build_libretro_generic_theos() {
|
2015-02-17 03:19:30 +00:00
|
|
|
echo PARAMETERS: DIR $2, SUBDIR: $3, MAKEFILE: $4
|
|
|
|
|
|
|
|
NAME=$1
|
|
|
|
DIR=$2
|
|
|
|
SUBDIR=$3
|
|
|
|
MAKEFILE=$4
|
|
|
|
PLATFORM=$5
|
|
|
|
ARGS=$6
|
|
|
|
|
|
|
|
cd $DIR
|
|
|
|
cd $SUBDIR
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
|
|
echo "cleaning up..."
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "cleanup command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean"
|
2015-03-09 12:23:17 +00:00
|
|
|
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean
|
|
|
|
if [ $? -eq 0 ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "compiling..."
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -z "${ARGS}" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}"
|
|
|
|
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}
|
|
|
|
else
|
|
|
|
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}"
|
|
|
|
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}
|
|
|
|
fi
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-04-11 22:37:45 +00:00
|
|
|
MESSAGE="$1 build successful [$jobid]"
|
2015-02-17 03:19:30 +00:00
|
|
|
cp -v objs/obj/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log | tail -n 100`
|
2015-04-11 22:13:02 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
|
|
|
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
echo BUILDBOT JOB: $MESSAGE
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-02-17 03:19:30 +00:00
|
|
|
buildbot_log "$MESSAGE"
|
2014-12-23 23:11:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_generic_jni() {
|
2015-02-17 03:19:30 +00:00
|
|
|
echo PARAMETERS: DIR $2, SUBDIR: $3
|
|
|
|
|
|
|
|
NAME=$1
|
|
|
|
DIR=$2
|
|
|
|
SUBDIR=$3
|
|
|
|
MAKEFILE=$4
|
|
|
|
PLATFORM=$5
|
|
|
|
ARGS=$6
|
|
|
|
|
|
|
|
cd ${DIR}/${SUBDIR}
|
|
|
|
|
|
|
|
for a in "${ABIS[@]}"; do
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -z "${NOCLEAN}" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "cleaning up..."
|
|
|
|
echo "cleanup command: ${NDK} -j${JOBS} ${ARGS} APP_ABI=${a} clean"
|
|
|
|
${NDK} -j${JOBS} ${ARGS} APP_ABI=${a} clean
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo BUILDBOT JOB: $jobid $a $1 cleanup success!
|
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid $a $1 cleanup failure!
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
echo "compiling for ${a}..."
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -z "${ARGS}" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "build command: ${NDK} -j${JOBS} APP_ABI=${a}"
|
2015-07-26 01:07:54 +00:00
|
|
|
${NDK} -j${JOBS} APP_ABI=${a} &> /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
|
|
|
echo "build command: ${NDK} -j${JOBS} APP_ABI=${a} ${ARGS} "
|
2015-07-26 01:07:54 +00:00
|
|
|
${NDK} -j${JOBS} APP_ABI=${a} ${ARGS} &> /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-04-11 22:37:45 +00:00
|
|
|
MESSAGE="$1-$a build successful [$jobid]"
|
2015-02-17 03:19:30 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE
|
|
|
|
buildbot_log "$MESSAGE"
|
2015-03-25 02:15:09 +00:00
|
|
|
cp -v ../libs/${a}/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${1}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log | tail -n 100`
|
2015-04-11 22:13:02 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
|
|
|
MESSAGE="$1-$a build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
2015-02-17 03:19:30 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-02-17 03:19:30 +00:00
|
|
|
buildbot_log "$MESSAGE"
|
|
|
|
fi
|
|
|
|
done
|
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
|
|
|
echo PARAMETERS: DIR $2, SUBDIR: $3
|
|
|
|
|
|
|
|
NAME=$1
|
|
|
|
DIR=$2
|
|
|
|
SUBDIR=$3
|
|
|
|
MAKEFILE=$4
|
|
|
|
PLATFORM=$5
|
|
|
|
PROFILE=$6
|
|
|
|
|
|
|
|
CORENAME=bsnes
|
|
|
|
|
|
|
|
cd ${DIR}/${SUBDIR}
|
|
|
|
|
|
|
|
for a in "${ABIS[@]}"; do
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
|
|
echo "cleaning up..."
|
|
|
|
echo "cleanup command: ${NDK} -j${JOBS} APP_ABI=${a} clean"
|
2015-02-17 03:19:30 +00:00
|
|
|
${NDK} -j${JOBS} APP_ABI=${a} clean
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
|
|
|
fi
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
echo "compiling for ${a}..."
|
|
|
|
if [ -z "${ARGS}" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "build command: ${NDK} -j${JOBS} APP_ABI=${a}"
|
|
|
|
${NDK} -j${JOBS} APP_ABI=${a}
|
|
|
|
else
|
|
|
|
echo "build command: ${NDK} -j${JOBS} APP_ABI=${a}"
|
|
|
|
${NDK} -j${JOBS} APP_ABI=${a}
|
|
|
|
fi
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-04-11 22:37:45 +00:00
|
|
|
MESSAGE="$1 build successful [$jobid]"
|
2015-03-25 02:15:09 +00:00
|
|
|
cp -v ../libs/${a}/libretro_${CORENAME}_${PROFILE}.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${NAME}_${PROFILE}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log | tail -n 100`
|
2015-07-21 05:31:15 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
|
|
|
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
echo BUILDBOT JOB: $MESSAGE
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-02-17 03:19:30 +00:00
|
|
|
buildbot_log "$MESSAGE"
|
|
|
|
done
|
2014-12-26 00:49:47 +00:00
|
|
|
}
|
|
|
|
|
2014-12-18 03:39:09 +00:00
|
|
|
|
2014-11-06 06:21:26 +00:00
|
|
|
build_libretro_generic_gl_makefile() {
|
|
|
|
|
2015-02-17 03:19:30 +00:00
|
|
|
NAME=$1
|
|
|
|
DIR=$2
|
|
|
|
SUBDIR=$3
|
|
|
|
MAKEFILE=$4
|
|
|
|
PLATFORM=$5
|
|
|
|
ARGS=$6
|
|
|
|
|
|
|
|
check_opengl
|
|
|
|
|
|
|
|
cd $DIR
|
|
|
|
cd $SUBDIR
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
|
|
echo "cleaning up..."
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "cleanup command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} clean"
|
2015-03-09 12:23:17 +00:00
|
|
|
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} clean
|
|
|
|
if [ $? -eq 0 ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "compiling..."
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -z "${ARGS}" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}"
|
2015-07-26 01:07:54 +00:00
|
|
|
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} &> /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
|
|
|
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS} ${ARGS}"
|
2015-07-26 01:07:54 +00:00
|
|
|
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} &> /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-04-11 22:37:45 +00:00
|
|
|
MESSAGE="$1 build successful [$jobid]"
|
2015-02-17 03:19:30 +00:00
|
|
|
cp -v ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log | tail -n 100`
|
2015-07-21 05:31:15 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
|
|
|
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
echo BUILDBOT JOB: $MESSAGE
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-02-17 03:19:30 +00:00
|
|
|
buildbot_log "$MESSAGE"
|
|
|
|
|
|
|
|
reset_compiler_targets
|
2014-11-08 20:02:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
build_libretro_bsnes() {
|
|
|
|
|
2015-02-17 03:19:30 +00:00
|
|
|
NAME=$1
|
|
|
|
DIR=$2
|
|
|
|
PROFILE=$3
|
|
|
|
MAKEFILE=$4
|
|
|
|
PLATFORM=$5
|
|
|
|
BSNESCOMPILER=$6
|
|
|
|
|
|
|
|
cd $DIR
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
|
|
echo "cleaning up..."
|
2015-02-17 03:19:30 +00:00
|
|
|
|
|
|
|
rm -f obj/*.{o,"${FORMAT_EXT}"}
|
|
|
|
rm -f out/*.{o,"${FORMAT_EXT}"}
|
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${PROFILE}" = "cpp98" -o "${PROFILE}" = "bnes" ]; then
|
2015-03-09 12:23:17 +00:00
|
|
|
${MAKE} clean
|
|
|
|
fi
|
2015-02-17 03:19:30 +00:00
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "compiling..."
|
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${PROFILE}" = "cpp98" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
${MAKE} platform="${PLATFORM}" ${COMPILER} "-j${JOBS}"
|
2015-03-09 12:28:13 +00:00
|
|
|
elif [ "${PROFILE}" = "bnes" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "build command: ${MAKE} -f Makefile ${COMPILER} "-j${JOBS}" compiler=${BSNESCOMPILER}" platform=${FORMAT_COMPILER_TARGET}
|
|
|
|
${MAKE} -f Makefile ${COMPILER} "-j${JOBS}" compiler="${BSNESCOMPILER}" platform=${FORMAT_COMPILER_TARGET}
|
|
|
|
else
|
|
|
|
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} compiler=${BSNESCOMPILER} ui='target-libretro' profile=${PROFILE} -j${JOBS}"
|
|
|
|
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} compiler=${BSNESCOMPILER} ui='target-libretro' profile=${PROFILE} -j${JOBS}
|
|
|
|
fi
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-04-11 22:37:45 +00:00
|
|
|
MESSAGE="$1 build successful [$jobid]"
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${PROFILE}" = "cpp98" ]; then
|
2015-03-10 18:21:54 +00:00
|
|
|
cp -fv "out/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
|
2015-03-09 12:28:13 +00:00
|
|
|
elif [ "${PROFILE}" = "bnes" ]; then
|
2015-03-10 18:21:54 +00:00
|
|
|
cp -fv "${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
2015-03-25 02:15:09 +00:00
|
|
|
cp -fv "out/${NAME}_${PROFILE}_libretro${FORMAT}.${FORMAT_EXT}" $RARCH_DIST_DIR/${NAME}_${PROFILE}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log | tail -n 100`
|
2015-04-11 22:13:02 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
|
|
|
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
echo BUILDBOT JOB: $MESSAGE
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-02-17 03:19:30 +00:00
|
|
|
buildbot_log "$MESSAGE"
|
2014-11-06 06:21:26 +00:00
|
|
|
}
|
|
|
|
|
2014-11-06 00:25:06 +00:00
|
|
|
#fetch a project and mark it for building if there have been any changes
|
|
|
|
|
2014-11-06 05:34:54 +00:00
|
|
|
#sleep 10
|
2015-01-17 17:52:59 +00:00
|
|
|
export jobid=$1
|
2015-01-17 05:56:23 +00:00
|
|
|
|
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 " "`
|
|
|
|
TYPE=`echo $line | cut -f 4 -d " "`
|
|
|
|
ENABLED=`echo $line | cut -f 5 -d " "`
|
|
|
|
COMMAND=`echo $line | cut -f 6 -d " "`
|
|
|
|
MAKEFILE=`echo $line | cut -f 7 -d " "`
|
|
|
|
SUBDIR=`echo $line | cut -f 8 -d " "`
|
2015-02-17 03:19:30 +00:00
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${ENABLED}" = "YES" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Processing $NAME"
|
|
|
|
echo
|
|
|
|
echo URL: $URL
|
|
|
|
echo REPO TYPE: $TYPE
|
|
|
|
echo ENABLED: $ENABLED
|
|
|
|
echo COMMAND: $COMMAND
|
|
|
|
echo MAKEFILE: $MAKEFILE
|
|
|
|
echo DIR: $DIR
|
|
|
|
echo SUBDIR: $SUBDIR
|
|
|
|
|
|
|
|
ARGS=""
|
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 9 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 10 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 11 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 12 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 13 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 14 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
|
2015-02-17 03:19:30 +00:00
|
|
|
|
|
|
|
echo ARGS: $ARGS
|
|
|
|
echo
|
|
|
|
echo
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${TYPE}" = "PROJECT" ]; then
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -d "${DIR}/.git" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
|
|
|
|
cd $DIR
|
|
|
|
echo "pulling from repo... "
|
|
|
|
OUT=`git pull`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [[ $OUT == *"Already up-to-date"* ]]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
BUILD="NO"
|
|
|
|
else
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
|
2015-03-18 03:46:52 +00:00
|
|
|
OLDFORCE=$FORCE
|
2015-07-21 05:31:15 +00:00
|
|
|
OLDBUILD=$BUILD
|
2015-03-18 03:46:52 +00:00
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${PREVCORE}" = "bsnes" -a "${PREVBUILD}" = "YES" -a "${COMMAND}" = "BSNES" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
FORCE="YES"
|
2015-03-29 19:34:25 +00:00
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
|
2015-06-17 23:49:20 +00:00
|
|
|
if [ "${PREVCORE}" = "gw" -a "${PREVBUILD}" = "YES" -a "${COMMAND}" = "LEIRADEL" ]; then
|
|
|
|
FORCE="YES"
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
|
2015-06-17 23:56:58 +00:00
|
|
|
if [ "${PREVCORE}" = "fuse" -a "${PREVBUILD}" = "YES" -a "${COMMAND}" = "LEIRADEL" ]; then
|
|
|
|
FORCE="YES"
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
|
2015-06-17 23:49:20 +00:00
|
|
|
|
2015-03-29 19:44:31 +00:00
|
|
|
if [ "${PREVCORE}" = "bsnes_mercury" -a "${PREVBUILD}" = "YES" -a "${COMMAND}" = "BSNES" ]; then
|
2015-03-29 19:34:25 +00:00
|
|
|
FORCE="YES"
|
2015-02-17 03:19:30 +00:00
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${PREVCORE}" = "mame" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "mess" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
FORCE="YES"
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${PREVCORE}" = "mess" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "ume" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
FORCE="YES"
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
|
2015-03-18 03:46:52 +00:00
|
|
|
if [[ "${PREVCORE}" == *fb* ]] && [[ "${PREVBUILD}" = "YES" ]] && [[ "${NAME}" == *fb* ]]; then
|
2015-03-18 03:27:33 +00:00
|
|
|
FORCE="YES"
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
|
2015-03-21 00:58:39 +00:00
|
|
|
cd $WORK
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
|
|
|
echo "cloning repo..."
|
|
|
|
git clone --depth=1 "$URL" "$DIR"
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
2015-03-09 12:28:13 +00:00
|
|
|
elif [ "${TYPE}" = "psp_hw_render" ]; then
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -d "${DIR}/.git" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
|
|
|
|
cd $DIR
|
|
|
|
echo "pulling from repo... "
|
|
|
|
OUT=`git pull`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [[ $OUT == *"Already up-to-date"* ]]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
BUILD="NO"
|
|
|
|
else
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
2015-03-21 00:58:39 +00:00
|
|
|
cd $WORK
|
2015-02-17 03:19:30 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "cloning repo..."
|
2015-03-07 21:07:38 +00:00
|
|
|
git clone "$URL" "$DIR"
|
2015-02-17 03:19:30 +00:00
|
|
|
cd $DIR
|
|
|
|
git checkout $TYPE
|
2015-03-21 00:58:39 +00:00
|
|
|
cd $WORK
|
2015-02-17 03:19:30 +00:00
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
elif [ "${TYPE}" == "SUBMODULE" ]; then
|
|
|
|
if [ -d "${DIR}/.git" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
|
|
|
|
cd $DIR
|
|
|
|
echo "pulling from repo... "
|
|
|
|
OUT=`git pull`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [[ $OUT == *"Already up-to-date"* ]]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
BUILD="NO"
|
|
|
|
else
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
OUT=`git submodule foreach git pull origin master`
|
2015-03-21 00:58:39 +00:00
|
|
|
cd $WORK
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
|
|
|
echo "cloning repo..."
|
|
|
|
git clone --depth=1 "$URL" "$DIR"
|
|
|
|
cd $DIR
|
|
|
|
git submodule update --init
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
2015-03-21 00:58:39 +00:00
|
|
|
cd $WORK
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo building core...
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${COMMAND}" = "GENERIC" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}"
|
2015-06-17 23:49:20 +00:00
|
|
|
elif [ "${COMMAND}" = "LEIRADEL" ]; then
|
|
|
|
build_libretro_leiradel_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}"
|
2015-03-09 12:28:13 +00:00
|
|
|
elif [ "${COMMAND}" = "GENERIC_GL" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_gl_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}"
|
2015-03-09 12:28:13 +00:00
|
|
|
elif [ "${COMMAND}" = "GENERIC_ALT" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
2015-03-09 12:28:13 +00:00
|
|
|
elif [ "${COMMAND}" = "GENERIC_JNI" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_jni $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
2015-03-09 12:28:13 +00:00
|
|
|
elif [ "${COMMAND}" = "BSNES_JNI" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_bsnes_jni $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
2015-03-09 12:28:13 +00:00
|
|
|
elif [ "${COMMAND}" = "GENERIC_THEOS" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_theos $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
2015-03-09 12:28:13 +00:00
|
|
|
elif [ "${COMMAND}" = "BSNES" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_bsnes $NAME $DIR "${ARGS}" $MAKEFILE ${FORMAT_COMPILER_TARGET} ${CXX11}
|
2015-03-09 12:23:17 +00:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid $NAME already up-to-date...
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd "${BASE_DIR}"
|
|
|
|
PREVCORE=$NAME
|
|
|
|
PREVBUILD=$BUILD
|
2015-03-18 03:46:52 +00:00
|
|
|
|
|
|
|
BUILD=$OLDBUILD
|
2015-07-21 05:31:15 +00:00
|
|
|
FORCE=$OLDFORCE
|
2015-03-18 03:46:52 +00:00
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
done < $1
|
2014-11-06 00:25:06 +00:00
|
|
|
|
2015-01-29 03:22:06 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Building Retroarch"
|
2015-03-21 00:58:39 +00:00
|
|
|
echo
|
2014-12-17 23:59:08 +00:00
|
|
|
cd $WORK
|
|
|
|
BUILD=""
|
2014-12-07 08:08:27 +00:00
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${PLATFORM}" = "android" ] && [ "${RA}" = "YES" ]; then
|
2015-02-17 03:19:30 +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
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${ENABLED}" = "YES" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Processing $NAME"
|
2015-07-03 14:40:27 +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=""
|
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 9 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 10 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 11 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 12 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 13 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 14 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
|
|
|
|
|
|
|
|
echo ARGS: $ARGS
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -d "${PARENTDIR}/${DIR}/.git" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
cd $PARENTDIR
|
|
|
|
cd $DIR
|
|
|
|
echo "pulling from repo... "
|
2015-07-15 04:42:04 +00:00
|
|
|
OUT=`git pull`
|
2015-02-17 03:19:30 +00:00
|
|
|
echo $OUT
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${TYPE}" = "PROJECT" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
RADIR=$DIR
|
2015-03-09 12:23:17 +00:00
|
|
|
if [[ $OUT == *"Already up-to-date"* ]]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
BUILD="NO"
|
|
|
|
else
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
cd $WORK
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "cloning repo..."
|
|
|
|
cd $PARENTDIR
|
|
|
|
git clone "$URL" "$DIR" --depth=1
|
|
|
|
cd $DIR
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${TYPE}" = "PROJECT" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
BUILD="YES"
|
|
|
|
RADIR=$DIR
|
|
|
|
fi
|
|
|
|
cd $WORK
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
2015-03-09 12:23:17 +00:00
|
|
|
done < $1.ra
|
2015-03-10 19:25:22 +00:00
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Compiling Shaders"
|
2015-03-21 21:34:02 +00:00
|
|
|
echo
|
2015-02-17 03:19:30 +00:00
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
echo RADIR $RADIR
|
|
|
|
cd $RADIR
|
2015-07-13 01:35:55 +00:00
|
|
|
$MAKE -f Makefile.griffin shaders-convert-glsl PYTHON3=$PYTHON
|
2015-03-09 12:23:17 +00:00
|
|
|
|
|
|
|
echo "BUILDBOT JOB: $jobid Processing Assets"
|
2015-03-21 21:34:02 +00:00
|
|
|
echo
|
2015-03-09 12:23:17 +00:00
|
|
|
|
2015-03-23 06:19:56 +00:00
|
|
|
|
2015-07-21 05:31:15 +00:00
|
|
|
rm -rf android/phoenix/assets/assets
|
|
|
|
rm -rf android/phoenix/assets/cores
|
|
|
|
rm -rf android/phoenix/assets/info
|
|
|
|
rm -rf android/phoenix/assets/overlays
|
|
|
|
rm -rf android/phoenix/assets/shaders/shaders_glsl/
|
|
|
|
rm -rf android/phoenix/assets/database
|
|
|
|
rm -rf android/phoenix/assets/autoconfig
|
|
|
|
rm -rf android/phoenix/assets/cheats
|
|
|
|
rm -rf android/phoenix/assets/playlists
|
|
|
|
rm -rf android/phoenix/assets/dowloads
|
|
|
|
rm -rf android/phoenix/assets/remaps
|
|
|
|
rm -rf android/phoenix/assets/system
|
2015-03-23 06:19:56 +00:00
|
|
|
|
|
|
|
mkdir -p android/phoenix/assets
|
|
|
|
mkdir -p android/phoenix/assets/
|
|
|
|
mkdir -p android/phoenix/assets/assets
|
|
|
|
mkdir -p android/phoenix/assets/cores
|
|
|
|
mkdir -p android/phoenix/assets/info
|
|
|
|
mkdir -p android/phoenix/assets/overlays
|
2015-07-11 23:48:12 +00:00
|
|
|
mkdir -p android/phoenix/assets/shaders/shaders_glsl/
|
2015-07-03 14:40:27 +00:00
|
|
|
mkdir -p android/phoenix/assets/database
|
2015-03-23 06:19:56 +00:00
|
|
|
mkdir -p android/phoenix/assets/autoconfig
|
2015-07-03 14:40:27 +00:00
|
|
|
mkdir -p android/phoenix/assets/cheats
|
2015-07-04 15:56:18 +00:00
|
|
|
mkdir -p android/phoenix/assets/playlists
|
2015-07-04 19:49:59 +00:00
|
|
|
mkdir -p android/phoenix/assets/dowloads
|
2015-07-04 22:00:30 +00:00
|
|
|
mkdir -p android/phoenix/assets/remaps
|
2015-07-13 00:21:08 +00:00
|
|
|
mkdir -p android/phoenix/assets/saves/
|
|
|
|
mkdir -p android/phoenix/assets/states/
|
|
|
|
mkdir -p android/phoenix/assets/system/
|
2015-03-23 06:19:56 +00:00
|
|
|
|
2015-03-21 21:34:02 +00:00
|
|
|
|
2015-07-21 05:31:15 +00:00
|
|
|
cp -rf media/assets/xmb android/phoenix/assets/assets/
|
|
|
|
cp -rf media/autoconfig/* android/phoenix/assets/autoconfig/
|
|
|
|
cp -rf media/libretrodb/rdb android/phoenix/assets/database/
|
|
|
|
cp -rf media/libretrodb/cursors android/phoenix/assets/database/
|
|
|
|
cp -rf media/overlays/* android/phoenix/assets/overlays/
|
|
|
|
cp -rf media/shaders_glsl/* android/phoenix/assets/shaders/shaders_glsl/
|
|
|
|
cp -rf media/shaders_glsl /tmp/
|
2015-07-13 00:21:08 +00:00
|
|
|
touch android/phoenix/assets/cheats/.empty-folder
|
|
|
|
touch android/phoenix/assets/saves/.empty-folder
|
|
|
|
touch android/phoenix/assets/states/.empty-folder
|
|
|
|
touch android/phoenix/assets/system/.empty-folder
|
2015-07-03 14:40:27 +00:00
|
|
|
|
2015-07-21 05:31:15 +00:00
|
|
|
cp -rf $RARCH_DIR/info/* android/phoenix/assets/info/
|
2015-03-21 21:34:02 +00:00
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Building"
|
2015-06-16 03:23:52 +00:00
|
|
|
echo
|
2015-03-09 12:23:17 +00:00
|
|
|
cd android/phoenix
|
|
|
|
rm bin/*.apk
|
|
|
|
|
2015-07-26 01:07:54 +00:00
|
|
|
$NDK clean &> /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
|
|
|
|
$NDK -j${JOBS} &>> /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
|
|
|
|
ant clean &>> /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
|
|
|
|
android update project --path . --target android-22 &>> /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
|
|
|
|
android update project --path libs/googleplay --target android-21 &>> /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
|
|
|
|
android update project --path libs/appcompat --target android-21 &>> /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
|
|
|
|
ant debug &>> /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-04-11 22:37:45 +00:00
|
|
|
MESSAGE="retroarch build successful [$jobid]"
|
2015-03-09 12:23:17 +00:00
|
|
|
echo $MESSAGE
|
2015-02-24 19:00:38 +00:00
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log | tail -n 100`
|
2015-04-11 22:13:02 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
|
|
|
MESSAGE="retroarch build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
2015-03-09 12:23:17 +00:00
|
|
|
echo $MESSAGE
|
2015-02-24 19:00:38 +00:00
|
|
|
fi
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-03-09 12:23:17 +00:00
|
|
|
buildbot_log "$MESSAGE"
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
2014-12-17 18:32:42 +00:00
|
|
|
fi
|
2014-12-07 08:08:27 +00:00
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${PLATFORM}" = "theos_ios" ] && [ "${RA}" = "YES" ]; then
|
2015-02-17 03:19:30 +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
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${ENABLED}" = "YES" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Processing $NAME"
|
|
|
|
echo
|
|
|
|
echo NAME: $NAME
|
|
|
|
echo DIR: $DIR
|
|
|
|
echo PARENT: $PARENTDIR
|
|
|
|
echo URL: $URL
|
|
|
|
echo REPO TYPE: $TYPE
|
|
|
|
echo ENABLED: $ENABLED
|
|
|
|
|
|
|
|
ARGS=""
|
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 9 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 10 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 11 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 12 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 13 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 14 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
|
|
|
|
|
|
|
|
echo ARGS: $ARGS
|
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -d "${PARENTDIR}/${DIR}/.git" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
cd $PARENTDIR
|
|
|
|
cd $DIR
|
|
|
|
echo "pulling from repo... "
|
|
|
|
OUT=`git pull`
|
|
|
|
echo $OUT
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${TYPE}" = "PROJECT" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
RADIR=$DIR
|
2015-03-09 12:23:17 +00:00
|
|
|
if [[ $OUT == *"Already up-to-date"* ]]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
BUILD="NO"
|
|
|
|
else
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
cd $WORK
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "cloning repo..."
|
|
|
|
cd $PARENTDIR
|
|
|
|
git clone "$URL" "$DIR" --depth=1
|
|
|
|
cd $DIR
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${TYPE}" = "PROJECT" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
BUILD="YES"
|
|
|
|
RADIR=$DIR
|
|
|
|
|
|
|
|
fi
|
|
|
|
cd $WORK
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
2015-03-09 12:23:17 +00:00
|
|
|
done < $1.ra
|
2015-03-10 19:25:22 +00:00
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Compiling Shaders"
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo RADIR $RADIR
|
|
|
|
cd $RADIR
|
|
|
|
$MAKE -f Makefile.griffin shaders-convert-glsl PYTHON3=$PYTHON
|
|
|
|
|
|
|
|
echo "BUILDBOT JOB: $jobid Processing Assets"
|
|
|
|
echo
|
|
|
|
|
|
|
|
|
|
|
|
echo "BUILDBOT JOB: $jobid Building"
|
|
|
|
echo
|
|
|
|
cd apple/iOS
|
|
|
|
rm RetroArch.app -rf
|
|
|
|
|
2015-07-21 05:31:15 +00:00
|
|
|
rm -rf *.deb
|
2015-02-17 03:19:30 +00:00
|
|
|
export PRODUCT_NAME=RetroArch
|
|
|
|
$MAKE clean
|
|
|
|
$MAKE -j8
|
|
|
|
./package.sh
|
|
|
|
|
|
|
|
mkdir obj/RetroArch.app/modules
|
2015-07-21 05:31:15 +00:00
|
|
|
cp -rf ../../../dist/theos/*.* obj/RetroArch.app/modules
|
|
|
|
cp -rf ../../../dist/info/*.* obj/RetroArch.app/modules
|
2015-02-17 03:19:30 +00:00
|
|
|
|
|
|
|
$MAKE package
|
|
|
|
|
|
|
|
cp -r *.deb /home/buildbot/www/.radius/
|
|
|
|
fi
|
2015-01-16 05:34:03 +00:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${PLATFORM}" = "MINGW64" ] || [ "${PLATFORM}" = "MINGW32" ] && [ "${RA}" = "YES" ]; then
|
2015-02-17 03:19:30 +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
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${ENABLED}" = "YES" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Processing $NAME"
|
|
|
|
echo
|
|
|
|
echo NAME: $NAME
|
|
|
|
echo DIR: $DIR
|
|
|
|
echo PARENT: $PARENTDIR
|
|
|
|
echo URL: $URL
|
|
|
|
echo REPO TYPE: $TYPE
|
|
|
|
echo ENABLED: $ENABLED
|
2015-07-21 05:31:15 +00:00
|
|
|
|
|
|
|
if [ "${NAME}" = "retroarch" ]; then
|
|
|
|
ARGS=""
|
|
|
|
TEMP=`echo $line | cut -f 7 -d " "`
|
|
|
|
if [ -n ${TEMP} ];
|
|
|
|
then
|
|
|
|
ARGS="${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 8 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 9 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
|
|
|
|
echo ARGS: $ARGS
|
|
|
|
fi
|
2015-02-17 03:19:30 +00:00
|
|
|
|
2015-07-21 05:31:15 +00:00
|
|
|
if [ -d "${PARENTDIR}/${DIR}/.git" ]; then
|
|
|
|
cd $PARENTDIR
|
|
|
|
cd $DIR
|
|
|
|
echo "pulling from repo... "
|
|
|
|
OUT=`git pull`
|
|
|
|
echo $OUT
|
|
|
|
if [ "${TYPE}" = "PROJECT" ]; then
|
|
|
|
RADIR=$DIR
|
|
|
|
if [[ $OUT == *"Already up-to-date"* ]]; then
|
|
|
|
BUILD="NO"
|
|
|
|
else
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
cd $WORK
|
|
|
|
else
|
|
|
|
echo "cloning repo..."
|
|
|
|
cd $PARENTDIR
|
|
|
|
git clone "$URL" "$DIR" --depth=1
|
|
|
|
cd $DIR
|
2015-02-17 03:19:30 +00:00
|
|
|
|
2015-07-21 05:31:15 +00:00
|
|
|
if [ "${TYPE}" = "PROJECT" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
BUILD="YES"
|
2015-07-21 05:31:15 +00:00
|
|
|
RADIR=$DIR
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
2015-07-21 05:31:15 +00:00
|
|
|
cd $WORK
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
2015-03-09 12:23:17 +00:00
|
|
|
done < $1.ra
|
2015-07-21 05:31:15 +00:00
|
|
|
echo b=$BUILD f=$FORCE
|
2015-03-10 19:25:22 +00:00
|
|
|
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
cd $RADIR
|
|
|
|
echo "BUILDBOT JOB: $jobid Building"
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo "compiling audio filters"
|
|
|
|
cd audio/audio_filters
|
|
|
|
echo "audio filter build command: ${MAKE}"
|
|
|
|
$MAKE
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-06-17 04:28:53 +00:00
|
|
|
echo BUILDBOT JOB: $jobid audio filter build success!
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid audio filter build failure!
|
|
|
|
fi
|
2015-06-17 04:28:53 +00:00
|
|
|
|
|
|
|
cd ..
|
2015-02-17 03:19:30 +00:00
|
|
|
cd ..
|
2015-06-17 04:28:53 +00:00
|
|
|
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "compiling video filters"
|
|
|
|
cd gfx/video_filters
|
|
|
|
echo "audio filter build command: ${MAKE}"
|
|
|
|
$MAKE
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-06-17 04:28:53 +00:00
|
|
|
echo BUILDBOT JOB: $jobid video filter build success!
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid video filter build failure!
|
|
|
|
fi
|
2015-06-17 04:28:53 +00:00
|
|
|
|
2015-02-17 03:19:30 +00:00
|
|
|
cd ..
|
2015-03-25 02:15:09 +00:00
|
|
|
cd ..
|
|
|
|
|
2015-04-07 04:57:26 +00:00
|
|
|
echo "configuring..."
|
2015-07-21 05:31:15 +00:00
|
|
|
echo "configure command: $CONFIGURE $ARGS"
|
|
|
|
${CONFIGURE} ${ARGS}
|
2015-04-07 04:57:26 +00:00
|
|
|
|
|
|
|
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "cleaning up..."
|
|
|
|
echo "cleanup command: $MAKE clean"
|
|
|
|
$MAKE clean
|
2015-03-25 02:15:09 +00:00
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-03-25 02:15:09 +00:00
|
|
|
echo BUILDBOT JOB: $jobid retroarch cleanup success!
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid retroarch cleanup failure!
|
2015-03-25 02:15:09 +00:00
|
|
|
fi
|
2015-02-17 03:19:30 +00:00
|
|
|
|
2015-04-07 04:57:26 +00:00
|
|
|
|
2015-03-25 02:15:09 +00:00
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-03-25 02:15:09 +00:00
|
|
|
echo BUILDBOT JOB: $jobid retroarch configure success!
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
|
|
|
echo BUILDBOT JOB: $jobid retroarch configure failure!
|
2015-03-19 21:35:37 +00:00
|
|
|
fi
|
|
|
|
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "building..."
|
|
|
|
echo "build command: $MAKE -j${JOBS}"
|
2015-07-26 01:07:54 +00:00
|
|
|
$MAKE -j${JOBS} &> /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
|
2015-06-28 19:59:55 +00:00
|
|
|
strip -s retroarch.exe
|
2015-03-25 02:15:09 +00:00
|
|
|
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-04-11 22:37:45 +00:00
|
|
|
MESSAGE="retroarch build successful [$jobid]"
|
2015-02-17 03:19:30 +00:00
|
|
|
echo $MESSAGE
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-02-17 03:19:30 +00:00
|
|
|
buildbot_log "$MESSAGE"
|
2015-03-25 02:15:09 +00:00
|
|
|
|
2015-02-17 03:19:30 +00:00
|
|
|
echo "Packaging"
|
|
|
|
echo ============================================
|
|
|
|
cp retroarch.cfg retroarch.default.cfg
|
2015-04-16 16:40:42 +00:00
|
|
|
|
2015-07-21 05:31:15 +00:00
|
|
|
rm -rf windows
|
2015-04-16 16:40:42 +00:00
|
|
|
mkdir -p windows
|
|
|
|
mkdir -p windows/overlays
|
2015-07-04 16:37:05 +00:00
|
|
|
mkdir -p windows/shaders/shaders_cg
|
2015-04-16 16:40:42 +00:00
|
|
|
mkdir -p windows/autoconfig
|
|
|
|
mkdir -p windows/filters
|
|
|
|
mkdir -p windows/filters/video
|
|
|
|
mkdir -p windows/filters/audio
|
|
|
|
mkdir -p windows/assets
|
|
|
|
mkdir -p windows/cheats
|
|
|
|
mkdir -p windows/database
|
|
|
|
mkdir -p windows/database/cursors
|
|
|
|
mkdir -p windows/database/rdb
|
2015-06-27 19:52:28 +00:00
|
|
|
mkdir -p windows/playlists
|
2015-07-04 19:24:57 +00:00
|
|
|
mkdir -p windows/content
|
|
|
|
mkdir -p windows/downloads
|
2015-07-04 21:42:13 +00:00
|
|
|
mkdir -p windows/info
|
2015-07-05 00:11:39 +00:00
|
|
|
mkdir -p windows/cores
|
2015-07-04 21:50:55 +00:00
|
|
|
mkdir -p windows/config/remap
|
2015-07-05 19:38:28 +00:00
|
|
|
mkdir -p windows/system
|
2015-07-13 02:27:48 +00:00
|
|
|
mkdir -p windows/saves
|
|
|
|
mkdir -p windows/states
|
2015-04-16 16:40:42 +00:00
|
|
|
|
|
|
|
cat << EOF > windows/retroarch.cfg
|
2015-07-04 20:02:18 +00:00
|
|
|
dpi_override_value = "160"
|
|
|
|
menu_driver = "xmb"
|
2015-01-29 01:43:19 +00:00
|
|
|
assets_directory = ":\assets"
|
|
|
|
audio_filter_dir = ":\filters\audio"
|
2015-02-22 21:24:17 +00:00
|
|
|
cheat_database_path = ":\cheats"
|
2015-01-29 01:43:19 +00:00
|
|
|
config_save_on_exit = "true"
|
2015-07-04 19:24:57 +00:00
|
|
|
content_database_path = ":\database\rdb"
|
2015-02-22 21:24:17 +00:00
|
|
|
cursor_directory = ":\database\cursors"
|
|
|
|
input_joypad_driver = "winxinput"
|
|
|
|
input_osk_overlay_enable = "false"
|
2015-07-04 21:50:55 +00:00
|
|
|
input_remapping_directory = ":\config\remap"
|
2015-02-22 21:24:17 +00:00
|
|
|
joypad_autoconfig_dir = ":\autoconfig"
|
|
|
|
libretro_directory = ":\cores"
|
2015-07-04 20:02:18 +00:00
|
|
|
libretro_directory = ":\cores"
|
2015-02-22 21:24:17 +00:00
|
|
|
load_dummy_on_core_shutdown = "false"
|
|
|
|
menu_collapse_subgroups_enable = "true"
|
|
|
|
osk_overlay_directory = ":\overlays"
|
|
|
|
overlay_directory = ":\overlays"
|
|
|
|
playlist_directory = ":\playlists"
|
|
|
|
rgui_config_directory = ":\config"
|
|
|
|
screenshot_directory = ":\screenshots"
|
2015-01-29 01:43:19 +00:00
|
|
|
video_driver = "gl"
|
2015-02-22 21:24:17 +00:00
|
|
|
video_filter_dir = ":\filters\video"
|
|
|
|
video_shader_dir = ":\shaders"
|
2015-07-04 19:24:57 +00:00
|
|
|
core_assets_directory = ":\downloads"
|
2015-07-04 20:02:18 +00:00
|
|
|
libretro_info_path = ":\info"
|
2015-02-22 21:24:17 +00:00
|
|
|
|
2015-01-29 01:38:25 +00:00
|
|
|
EOF
|
2015-01-29 01:43:19 +00:00
|
|
|
|
2015-04-26 22:09:37 +00:00
|
|
|
cp -v retroarch.default.cfg windows/
|
2015-02-17 03:19:30 +00:00
|
|
|
cp -v *.exe tools/*.exe windows/
|
2015-07-21 05:31:15 +00:00
|
|
|
cp -rf media/overlays/* windows/overlays
|
|
|
|
cp -rf media/shaders_cg/* windows/shaders/shaders_cg
|
|
|
|
cp -rf media/autoconfig/* windows/autoconfig
|
|
|
|
cp -rf media/assets/* windows/assets
|
|
|
|
cp -rf media/libretrodb/cht/* windows/cheats
|
|
|
|
cp -rf media/libretrodb/rdb/* windows/database/rdb
|
|
|
|
cp -rf media/libretrodb/cursors/* windows/database/cursors
|
|
|
|
cp -rf $RARCH_DIR/info/* windows/info
|
|
|
|
cp -rf audio/audio_filters/*.dll windows/filters/audio
|
|
|
|
cp -rf audio/audio_filters/*.dsp windows/filters/audio
|
|
|
|
cp -rf gfx/video_filters/*.dll windows/filters/video
|
|
|
|
cp -rf gfx/video_filters/*.filt windows/filters/video
|
2015-02-17 03:19:30 +00:00
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log | tail -n 100`
|
2015-04-11 22:13:02 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
2015-06-28 19:59:55 +00:00
|
|
|
MESSAGE="retroarch build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
|
|
|
echo $MESSAGE
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-06-28 19:59:55 +00:00
|
|
|
buildbot_log "$MESSAGE"
|
|
|
|
fi
|
2015-02-17 03:19:30 +00:00
|
|
|
fi
|
2015-01-27 23:34:52 +00:00
|
|
|
fi
|
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${PLATFORM}" = "psp1" ] && [ "${RA}" = "YES" ]; then
|
2015-02-26 01:32:07 +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-26 01:32:07 +00:00
|
|
|
|
2015-03-09 12:28:13 +00:00
|
|
|
if [ "${ENABLED}" = "YES" ]; then
|
2015-02-26 01:32:07 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Processing $NAME"
|
2015-06-17 04:28:53 +00:00
|
|
|
echo
|
2015-02-26 01:32:07 +00:00
|
|
|
echo NAME: $NAME
|
|
|
|
echo DIR: $DIR
|
|
|
|
echo PARENT: $PARENTDIR
|
|
|
|
echo URL: $URL
|
|
|
|
echo REPO TYPE: $TYPE
|
|
|
|
echo ENABLED: $ENABLED
|
|
|
|
|
|
|
|
ARGS=""
|
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 9 -d " "`
|
2015-03-09 12:23:17 +00:00
|
|
|
if [ -n ${TEMP} ]; then
|
2015-02-26 01:32:07 +00:00
|
|
|
ARGS="${TEMP}"
|
2015-03-10 19:25:22 +00:00
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 10 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 11 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 12 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 13 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 14 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
2015-02-26 01:32:07 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
|
2015-02-26 01:32:07 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
echo ARGS: $ARGS
|
2015-02-26 01:32:07 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
if [ -d "${PARENTDIR}/${DIR}/.git" ]; then
|
|
|
|
cd $PARENTDIR
|
|
|
|
cd $DIR
|
|
|
|
echo "pulling from repo... "
|
|
|
|
OUT=`git pull`
|
|
|
|
echo $OUT
|
|
|
|
if [ "${TYPE}" = "PROJECT" ]; then
|
|
|
|
RADIR=$DIR
|
|
|
|
if [[ $OUT == *"Already up-to-date"* ]]; then
|
|
|
|
BUILD="NO"
|
2015-06-17 04:28:53 +00:00
|
|
|
else
|
2015-03-10 19:25:22 +00:00
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
cd $WORK
|
|
|
|
else
|
|
|
|
echo "cloning repo..."
|
|
|
|
cd $PARENTDIR
|
|
|
|
git clone "$URL" "$DIR" --depth=1
|
|
|
|
cd $DIR
|
2015-06-17 04:28:53 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
if [ "${TYPE}" = "PROJECT" ]; then
|
2015-02-26 01:32:07 +00:00
|
|
|
BUILD="YES"
|
2015-03-10 19:25:22 +00:00
|
|
|
RADIR=$DIR
|
2015-02-26 01:32:07 +00:00
|
|
|
fi
|
2015-03-10 19:25:22 +00:00
|
|
|
cd $WORK
|
2015-02-26 01:32:07 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
echo
|
|
|
|
echo
|
2015-03-09 12:23:17 +00:00
|
|
|
done < $1.ra
|
2015-02-26 01:32:07 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
|
2015-02-26 01:32:07 +00:00
|
|
|
cd $RADIR
|
2015-07-21 05:31:15 +00:00
|
|
|
rm -rf psp1/pkg
|
2015-02-26 01:32:07 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Building"
|
|
|
|
echo
|
|
|
|
|
2015-03-09 12:41:06 +00:00
|
|
|
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ]; then
|
2015-03-10 19:25:22 +00:00
|
|
|
cd dist-scripts
|
|
|
|
rm *.a
|
|
|
|
cp -v $RARCH_DIST_DIR/*.a .
|
2015-03-25 02:15:09 +00:00
|
|
|
#ls -1 *.a | awk -F "." ' { print "cp " $0 " " $1 "_psp1." $2 }' |sh
|
2015-02-26 01:32:07 +00:00
|
|
|
|
2015-07-26 01:07:54 +00:00
|
|
|
./psp1-cores.sh &> /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
|
2015-03-10 19:25:22 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-04-11 22:37:45 +00:00
|
|
|
MESSAGE="retroarch build successful [$jobid]"
|
2015-03-10 19:25:22 +00:00
|
|
|
echo $MESSAGE
|
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log | tail -n 100`
|
2015-04-11 22:13:02 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
|
|
|
MESSAGE="retroarch build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
2015-03-10 19:25:22 +00:00
|
|
|
echo $MESSAGE
|
|
|
|
fi
|
2015-03-11 00:20:56 +00:00
|
|
|
buildbot_log "$MESSAGE"
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-03-25 02:15:09 +00:00
|
|
|
|
2015-02-26 01:32:07 +00:00
|
|
|
echo "Packaging"
|
|
|
|
echo ============================================
|
2015-06-17 04:28:53 +00:00
|
|
|
cd $WORK/$RADIR
|
2015-02-26 01:32:07 +00:00
|
|
|
cp retroarch.cfg retroarch.default.cfg
|
2015-03-09 12:41:06 +00:00
|
|
|
|
2015-02-26 01:32:07 +00:00
|
|
|
mkdir -p psp1/pkg/
|
|
|
|
mkdir -p psp1/pkg/cheats
|
2015-07-04 21:57:26 +00:00
|
|
|
# mkdir -p psp1/pkg/database
|
|
|
|
# mkdir -p psp1/pkg/database/cursors
|
2015-02-26 01:32:07 +00:00
|
|
|
mkdir -p psp1/pkg/database/rdb
|
2015-06-17 04:28:53 +00:00
|
|
|
|
2015-07-21 05:31:15 +00:00
|
|
|
# cp -rf media/libretrodb/cht/* psp1/pkg/cheats
|
|
|
|
# cp -rf media/libretrodb/rdb/* psp1/pkg/database/rdb
|
|
|
|
# cp -rf media/libretrodb/cursors/* psp1/pkg/database/cursors
|
2015-02-26 01:32:07 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
if [ "${PLATFORM}" == "wii" ] && [ "${RA}" == "YES" ]; then
|
2015-03-07 21:08:46 +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 " "`
|
|
|
|
|
|
|
|
if [ "${ENABLED}" == "YES" ]; then
|
2015-03-07 21:08:46 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Processing $NAME"
|
2015-07-19 18:59:14 +00:00
|
|
|
echo
|
2015-03-07 21:08:46 +00:00
|
|
|
echo NAME: $NAME
|
|
|
|
echo DIR: $DIR
|
|
|
|
echo PARENT: $PARENTDIR
|
|
|
|
echo URL: $URL
|
|
|
|
echo REPO TYPE: $TYPE
|
|
|
|
echo ENABLED: $ENABLED
|
|
|
|
|
|
|
|
ARGS=""
|
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
TEMP=`echo $line | cut -f 9 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
2015-03-07 21:08:46 +00:00
|
|
|
ARGS="${TEMP}"
|
2015-03-10 19:25:22 +00:00
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 10 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 11 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 12 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 13 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut -f 14 -d " "`
|
|
|
|
if [ -n ${TEMP} ]; then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
2015-03-07 21:08:46 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
|
2015-03-07 21:08:46 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
echo ARGS: $ARGS
|
2015-03-07 21:08:46 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
if [ -d "${PARENTDIR}/${DIR}/.git" ]; then
|
|
|
|
cd $PARENTDIR
|
|
|
|
cd $DIR
|
|
|
|
echo "pulling from repo... "
|
|
|
|
OUT=`git pull`
|
|
|
|
echo $OUT
|
|
|
|
if [ "${TYPE}" == "PROJECT" ]; then
|
|
|
|
RADIR=$DIR
|
|
|
|
if [[ $OUT == *"Already up-to-date"* ]]; then
|
|
|
|
BUILD="NO"
|
|
|
|
else
|
|
|
|
BUILD="YES"
|
|
|
|
fi
|
2015-03-07 21:08:46 +00:00
|
|
|
fi
|
2015-03-10 19:25:22 +00:00
|
|
|
cd $WORK
|
|
|
|
else
|
|
|
|
echo "cloning repo..."
|
|
|
|
cd $PARENTDIR
|
|
|
|
git clone "$URL" "$DIR" --depth=1
|
|
|
|
cd $DIR
|
2015-03-11 03:10:11 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
if [ "${TYPE}" == "PROJECT" ]; then
|
|
|
|
BUILD="YES"
|
|
|
|
RADIR=$DIR
|
2015-03-07 21:08:46 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
fi
|
|
|
|
cd $WORK
|
2015-03-07 21:08:46 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
echo
|
|
|
|
echo
|
2015-03-07 21:08:46 +00:00
|
|
|
done < $1.ra
|
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ]; then
|
2015-03-07 21:08:46 +00:00
|
|
|
cd $RADIR
|
2015-07-21 05:31:15 +00:00
|
|
|
#rm -rf wii/pkg
|
2015-03-07 21:08:46 +00:00
|
|
|
echo "BUILDBOT JOB: $jobid Building"
|
2015-03-07 21:51:20 +00:00
|
|
|
echo
|
2015-03-07 21:08:46 +00:00
|
|
|
|
2015-03-10 19:25:22 +00:00
|
|
|
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ]; then
|
2015-03-10 19:36:15 +00:00
|
|
|
cd dist-scripts
|
|
|
|
rm *.a
|
|
|
|
cp -v $RARCH_DIST_DIR/*.a .
|
2015-03-07 21:08:46 +00:00
|
|
|
|
2015-03-25 02:15:09 +00:00
|
|
|
#ls -1 *.a | awk -F "." ' { print "cp " $0 " " $1 "_wii." $2 }' |sh
|
2015-07-26 01:07:54 +00:00
|
|
|
sh ./wii-cores.sh &> /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
|
2015-03-10 19:36:15 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2015-04-11 22:37:45 +00:00
|
|
|
MESSAGE="retroarch build successful [$jobid]"
|
2015-03-10 19:36:15 +00:00
|
|
|
echo $MESSAGE
|
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log | tail -n 100`
|
2015-04-11 22:13:02 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
|
|
|
MESSAGE="retroarch build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
2015-03-10 19:36:15 +00:00
|
|
|
echo $MESSAGE
|
|
|
|
fi
|
|
|
|
buildbot_log "$MESSAGE"
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-03-11 00:20:56 +00:00
|
|
|
cd $WORK/$RADIR
|
2015-03-07 21:08:46 +00:00
|
|
|
fi
|
|
|
|
|
2015-03-10 19:36:15 +00:00
|
|
|
echo "Packaging"
|
|
|
|
echo ============================================
|
|
|
|
cp retroarch.cfg retroarch.default.cfg
|
|
|
|
|
|
|
|
mkdir -p wii/pkg/
|
|
|
|
mkdir -p wii/pkg/overlays
|
|
|
|
mkdir -p wii/pkg/cheats
|
2015-07-04 22:00:30 +00:00
|
|
|
mkdir -p wii/pkg/remaps
|
2015-07-04 20:09:01 +00:00
|
|
|
# mkdir -p wii/pkg/database
|
|
|
|
# mkdir -p wii/pkg/database/cursors
|
|
|
|
# mkdir -p wii/pkg/database/rdb
|
2015-03-10 19:36:15 +00:00
|
|
|
|
2015-07-21 05:31:15 +00:00
|
|
|
# cp -rf media/libretrodb/cht/* wii/pkg/cheats
|
|
|
|
# cp -rf media/libretrodb/rdb/* wii/pkg/database/rdb
|
|
|
|
# cp -rf media/libretrodb/cursors/* wii/pkg/database/cursors
|
|
|
|
cp -rf media/overlays/wii/* wii/pkg/overlays
|
2015-03-07 21:08:46 +00:00
|
|
|
fi
|
|
|
|
fi
|
2015-01-27 23:34:52 +00:00
|
|
|
|
2015-03-11 02:38:12 +00:00
|
|
|
if [ "${PLATFORM}" == "ngc" ] && [ "${RA}" == "YES" ];
|
|
|
|
then
|
|
|
|
|
|
|
|
while read line; do
|
|
|
|
|
|
|
|
NAME=`echo $line | cut --fields=1 --delimiter=" "`
|
|
|
|
DIR=`echo $line | cut --fields=2 --delimiter=" "`
|
|
|
|
URL=`echo $line | cut --fields=3 --delimiter=" "`
|
|
|
|
TYPE=`echo $line | cut --fields=4 --delimiter=" "`
|
|
|
|
ENABLED=`echo $line | cut --fields=5 --delimiter=" "`
|
|
|
|
PARENTDIR=`echo $line | cut --fields=6 --delimiter=" "`
|
|
|
|
|
|
|
|
if [ "${ENABLED}" == "YES" ];
|
|
|
|
then
|
|
|
|
echo "BUILDBOT JOB: $jobid Processing $NAME"
|
|
|
|
echo
|
|
|
|
echo NAME: $NAME
|
|
|
|
echo DIR: $DIR
|
|
|
|
echo PARENT: $PARENTDIR
|
|
|
|
echo URL: $URL
|
|
|
|
echo REPO TYPE: $TYPE
|
|
|
|
echo ENABLED: $ENABLED
|
|
|
|
|
|
|
|
ARGS=""
|
|
|
|
|
|
|
|
TEMP=`echo $line | cut --fields=9 --delimiter=" "`
|
|
|
|
if [ -n ${TEMP} ];
|
|
|
|
then
|
|
|
|
ARGS="${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut --fields=10 --delimiter=" "`
|
|
|
|
if [ -n ${TEMP} ];
|
|
|
|
then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut --fields=11 --delimiter=" "`
|
|
|
|
if [ -n ${TEMP} ];
|
|
|
|
then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut --fields=12 --delimiter=" "`
|
|
|
|
if [ -n ${TEMP} ];
|
|
|
|
then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut --fields=13 --delimiter=" "`
|
|
|
|
if [ -n ${TEMP} ];
|
|
|
|
then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
TEMP=""
|
|
|
|
TEMP=`echo $line | cut --fields=14 --delimiter=" "`
|
|
|
|
if [ -n ${TEMP} ];
|
|
|
|
then
|
|
|
|
ARGS="${ARGS} ${TEMP}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
|
|
|
|
|
|
|
|
echo ARGS: $ARGS
|
|
|
|
|
|
|
|
if [ -d "${PARENTDIR}/${DIR}/.git" ];
|
|
|
|
then
|
|
|
|
cd $PARENTDIR
|
|
|
|
cd $DIR
|
|
|
|
echo "pulling from repo... "
|
|
|
|
OUT=`git pull`
|
|
|
|
echo $OUT
|
|
|
|
if [ "${TYPE}" == "PROJECT" ];
|
|
|
|
then
|
|
|
|
RADIR=$DIR
|
|
|
|
if [[ $OUT == *"Already up-to-date"* ]]
|
|
|
|
then
|
|
|
|
BUILD="NO"
|
2015-06-17 04:28:53 +00:00
|
|
|
else
|
2015-03-11 02:38:12 +00:00
|
|
|
BUILD="YES"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
cd $WORK
|
|
|
|
else
|
|
|
|
echo "cloning repo..."
|
|
|
|
cd $PARENTDIR
|
|
|
|
git clone "$URL" "$DIR" --depth=1
|
|
|
|
cd $DIR
|
2015-06-17 04:28:53 +00:00
|
|
|
|
2015-03-11 02:38:12 +00:00
|
|
|
if [ "${TYPE}" == "PROJECT" ];
|
|
|
|
then
|
|
|
|
BUILD="YES"
|
|
|
|
RADIR=$DIR
|
|
|
|
|
|
|
|
fi
|
|
|
|
cd $WORK
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
done < $1.ra
|
|
|
|
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ];
|
|
|
|
then
|
|
|
|
|
|
|
|
cd $RADIR
|
|
|
|
echo "BUILDBOT JOB: $jobid Building"
|
|
|
|
echo
|
|
|
|
|
|
|
|
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ];
|
|
|
|
then
|
|
|
|
|
|
|
|
cd dist-scripts
|
|
|
|
rm *.a
|
|
|
|
cp -v $RARCH_DIST_DIR/*.a .
|
2015-06-17 04:28:53 +00:00
|
|
|
|
2015-03-25 02:15:09 +00:00
|
|
|
#ls -1 *.a | awk -F "." ' { print "cp " $0 " " $1 "_ngc." $2 }' |sh
|
2015-07-26 01:07:54 +00:00
|
|
|
sh ./ngc-cores.sh &> /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
|
2015-03-11 02:38:12 +00:00
|
|
|
if [ $? -eq 0 ];
|
|
|
|
then
|
2015-04-11 22:37:45 +00:00
|
|
|
MESSAGE="retroarch build successful [$jobid]"
|
2015-03-11 02:38:12 +00:00
|
|
|
echo $MESSAGE
|
|
|
|
else
|
2015-07-26 01:07:54 +00:00
|
|
|
ERROR=`cat /tmp/log/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log | tail -n 100`
|
2015-04-11 22:13:02 +00:00
|
|
|
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
|
|
|
MESSAGE="retroarch build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
2015-03-11 02:38:12 +00:00
|
|
|
echo $MESSAGE
|
|
|
|
fi
|
|
|
|
buildbot_log "$MESSAGE"
|
2015-07-26 01:07:54 +00:00
|
|
|
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/${LOGDATE}/${LOGDATE}_summary.log
|
2015-06-17 04:28:53 +00:00
|
|
|
cd ..
|
2015-03-11 02:38:12 +00:00
|
|
|
|
2015-06-17 04:28:53 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Packaging"
|
2015-03-11 02:38:12 +00:00
|
|
|
echo ============================================
|
|
|
|
cp retroarch.cfg retroarch.default.cfg
|
2015-03-11 04:23:19 +00:00
|
|
|
mkdir -p ngc/pkg/
|
|
|
|
mkdir -p ngc/pkg/cheats
|
2015-07-04 22:00:30 +00:00
|
|
|
mkdir -p ngc/pkg/remaps
|
2015-07-04 20:09:01 +00:00
|
|
|
# mkdir -p ngc/pkg/database
|
|
|
|
# mkdir -p ngc/pkg/database/cursors
|
|
|
|
# mkdir -p ngc/pkg/database/rdb
|
2015-03-11 04:35:51 +00:00
|
|
|
mkdir -p ngc/pkg/overlays
|
2015-07-21 05:31:15 +00:00
|
|
|
# cp -rf media/libretrodb/cht/* ngc/pkg/cheats
|
|
|
|
# cp -rf media/libretrodb/rdb/* ngc/pkg/database/rdb
|
|
|
|
# cp -rf media/libretrodb/cursors/* ngc/pkg/database/cursors
|
|
|
|
cp -rf media/overlays/wii/* ngc/pkg/overlays
|
2015-06-17 04:28:53 +00:00
|
|
|
|
2015-03-11 02:38:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2014-11-08 20:28:26 +00:00
|
|
|
PATH=$ORIGPATH
|