libretro-buildbot-recipe.sh: Work around need for cut.

This commit is contained in:
orbea 2017-11-14 06:09:22 -08:00
parent 1ee666b331
commit 8e62d0bd0d

View File

@ -762,15 +762,27 @@ export jobid=$1
echo echo
echo echo
while read line; do while read line; do
NAME=`echo $line | cut -f 1 -d " "` eval "set -- \$line"
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "` NAME="$1"
GIT_BRANCH=`echo $line | cut -f 4 -d " "` DIR="$2"
TYPE=`echo $line | cut -f 5 -d " "` URL="$3"
ENABLED=`echo $line | cut -f 6 -d " "` GIT_BRANCH="$4"
COMMAND=`echo $line | cut -f 7 -d " "` TYPE="$5"
MAKEFILE=`echo $line | cut -f 8 -d " "` ENABLED="$6"
SUBDIR=`echo $line | cut -f 9 -d " "` COMMAND="$7"
MAKEFILE="$8"
SUBDIR="$9"
ARGS=""
shift 9
while [ $# -gt 0 ]; do
ARGS="${ARGS} ${1}"
shift
done
ARGS="${ARGS# }"
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
if [ "$SINGLE_CORE" ] && [ "$NAME" != "$SINGLE_CORE" ]; then if [ "$SINGLE_CORE" ] && [ "$NAME" != "$SINGLE_CORE" ]; then
continue continue
@ -793,17 +805,6 @@ while read line; do
echo echo
echo echo
ARGS=""
eval "set -- \$line"
shift 9
while [ $# -gt 0 ]; do
ARGS="${ARGS} ${1}"
shift
done
ARGS="${ARGS# }"
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
BUILD="NO" BUILD="NO"
UPDATE="YES" UPDATE="YES"
@ -917,12 +918,24 @@ buildbot_pull(){
[ ! -f "$RECIPE.ra" ] && return 0 [ ! -f "$RECIPE.ra" ] && return 0
while read line; do while read line; do
NAME=`echo $line | cut -f 1 -d " "` eval "set -- \$line"
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "` NAME="$1"
TYPE=`echo $line | cut -f 4 -d " "` DIR="$2"
ENABLED=`echo $line | cut -f 5 -d " "` URL="$3"
PARENTDIR=`echo $line | cut -f 6 -d " "` TYPE="$4"
ENABLED="$5"
PARENTDIR="$6"
ARGS=""
shift 6
while [ $# -gt 0 ]; do
ARGS="${ARGS} ${1}"
shift
done
ARGS="${ARGS# }"
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
if [ "${ENABLED}" = "YES" ]; then if [ "${ENABLED}" = "YES" ]; then
echo "buildbot job: $jobid Processing $NAME" echo "buildbot job: $jobid Processing $NAME"
@ -934,18 +947,6 @@ buildbot_pull(){
echo REPO TYPE: $TYPE echo REPO TYPE: $TYPE
echo ENABLED: $ENABLED echo ENABLED: $ENABLED
ARGS=""
eval "set -- \$line"
shift 8
while [ $# -gt 0 ]; do
ARGS="${ARGS} ${1}"
shift
done
ARGS="${ARGS# }"
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
if [ -d "${PARENTDIR}/${DIR}/.git" ]; then if [ -d "${PARENTDIR}/${DIR}/.git" ]; then
cd $PARENTDIR cd $PARENTDIR
cd $DIR cd $DIR