#!/bin/sh PACKAGES="libosmocore \ libosmo-abis \ libosmo-netif \ libosmo-sccp \ osmo-pcu \ osmo-bts \ openbsc \ openggsn \ " EXPORT_FILE="pr.conf" if [ "$1" = "" ]; then echo "Error: No PR given" exit 1 fi PR="$1" bitbake-prserv-tool export ${EXPORT_FILE} for PACKAGE in ${PACKAGES}; do REGEXP="\(^PRAUTO.*"${PACKAGE}".*\s\)\(\"[0-9]*\)\(\"\)" sed -i -e "s/${REGEXP}/\1\"${PR}\"/" ${EXPORT_FILE} done bitbake-prserv-tool import ${EXPORT_FILE}