LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pre_checkin.sh of Package u-boot-omap3overo (Project home:tserong:branches:openSUSE:12.2:ARM)

#!/bin/bash -e

BOARDNAME="$1"
BOARDCONFIG="$2"

# omap3_beagle currently needs separate sources

if [ ! "$1" -o ! "$2" ]; then
    for BOARDCONFIG in omap3_overo omap4_panda u8500_href origen highbank; do
        BOARDNAME="$(echo $BOARDCONFIG | tr -d '_')"
        BOARDCONFIG=${BOARDCONFIG}_config
        bash $0 $BOARDNAME $BOARDCONFIG
    done
    exit 0
fi

if [ "$(echo $BOARDCONFIG | grep omap)" ]; then
    XLOADER=1
else
    XLOADER=0
fi

sed "s/BOARDCONFIG/$BOARDCONFIG/g
s/BOARDNAME/$BOARDNAME/g
s/XLOADER/$XLOADER/g" < u-boot.spec.in > u-boot-$BOARDNAME.spec

cp u-boot.changes u-boot-$BOARDNAME.changes