scripts: add script for manual setting prs of packages in a prserver

This commit is contained in:
Henning Heinold 2014-09-30 16:52:23 +02:00
parent 0da7a589fc
commit 5b3d287173
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
#!/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}